Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107899 - sys-libs/pam-0.78-r2 and pam_userdb denial of service
Summary: sys-libs/pam-0.78-r2 and pam_userdb denial of service
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-02 08:04 UTC by Spider (RETIRED)
Modified: 2006-04-21 08:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pam-0.78-userdb-cript.patch (pam-0.78-userdb-cript.patch,572 bytes, patch)
2006-01-12 04:07 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Spider (RETIRED) gentoo-dev 2005-10-02 08:04:01 UTC
The pam_userdb added the "optional" crypt= variable to the /etc/pam.d/ files. 
However the internal structure is initialized to NULL and sloppily passed
onwards.  Therefore unless the crypt=  line is -present- in the config, it will
remain as NULL and cause a segfault, thereby making the logins fail unconditionally.
Comment 1 Stefan Cornelius (RETIRED) gentoo-dev 2006-01-12 02:59:05 UTC
not sure if this really is a security issue or not, however please provide a fixed package.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-12 04:07:54 UTC
Created attachment 76894 [details, diff]
pam-0.78-userdb-cript.patch

Can someone test if this works? I don't have pam_userdb setup here to test.
Comment 3 Stefan Cornelius (RETIRED) gentoo-dev 2006-01-12 04:51:14 UTC
Opening bug, this is known in the public. I found a patch that seems to fix another similar issue here, maybe we also need that one. http://cvs.sourceforge.net/viewcvs.py/pam/Linux-PAM/modules/pam_userdb/pam_userdb.c?r1=1.16&r2=1.18
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2006-01-18 06:16:10 UTC
AFAICT this is not a vulnerability, it's just a bug. Bad config => no login allowed. Reassigning.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-25 06:02:13 UTC
So as I'm probably not going to try preparing ebuilds for pam 0.81 now (as I don't have the free time to start looking at it so much to make its build system sane), can someone please test the patch I've tried to prepare? The one in the ViewCVS does not apply over current sources (or I would have applied it with -r4).
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-21 08:58:59 UTC
See above, a test might be handy, but anyway 0.99 is in tree p.masked -* until it can be fixed.