[cups.bugs] [MOD] STR #2734: adding printer causing cupsd to crash in case of incorrectly configured PAM

Alexander Chernikov admin at su29.net
Tue Mar 4 08:16:59 PST 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Problem relies in incorrect usage of pam_start(3) in scheduler/auth.c.
If pam_start fails, pam handle is undefined
(Linux-PAM, Initialization of PAM transaction part;
Imho, this is implicitly assumed for other implementations like OpenPAM
(problem was found on FreeBSD 8.0-amd64))
After that, pam_end() is called with handle pointing to some random memory
part causing core.
Patch attached.

Link: http://www.cups.org/str.php?L2734
Version: 1.4-current
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups_pam.diff
URL: <https://lists.cups.org/pipermail/cups/attachments/20080304/f60abf68/attachment.ksh>


More information about the cups mailing list