Bugzilla – Bug 870168
VUL-1: CVE-2014-2830: cifs-utils: pam module pam_cifscreds stack overflow
Last modified: 2020-05-12 17:41:15 UTC
pam_cifscreds - PAM module to manage NTLM credentials in kernel keyring was added to SLE12 as a new subpackage of "cifs-utils". quote manpage: The pam_cifscreds PAM module is a tool for automatically adding credentials (username and password) for the purpose of establishing sessions in multiuser mounts. When a cifs filesystem is mounted with the "multiuser" option, and does not use krb5 authentication, it needs to be able to get the credentials for each user from somewhere. The pam_cifscreds module can be used to provide these credentials to the kernel automatically at login. In the session section of the PAM configuration file, the module can either an NT domain name or a list of hostname or addresses. +++ auth optional pam_cifscreds.so +++ session optional pam_cifscreds.so domain=DOMAIN
Created attachment 585445 [details] overflow fix .
Fixing buffer overflow in cifskey, maybe also used in samba itself?
Created attachment 585460 [details] better patch .
Affected packages: SLE-11-SP3: cifs-utils
ping? any update?
For SLE 12 this is fixed. SLE 11 SP3 still has a problem in create_description but a different patch is necessary. Still keeping this as VUL-1
Move bug to incident component
cifs-utils had started including pam_cifscreds since v6.3. SLE-11-SP* packages are all based on v5.1. There *is* a variation of the vulnerable code in v5.1 but I'm almost completely sure its *not* exposed to user input because the code is only written for and used by the cifscreds program which is not part of the package (not enabled in the configure script step I assume) in both 11SP3 and 11SP4. Nevertheless I've backported the fix to 5.1, if we ever enabled cifscreds. Fix is available on my home repo on IBS at: https://build.suse.de/package/show/home:aaptel:bsc870168-cifs-utils/cifs-utils I'm also including the backported patch as attachment, if anyone prefers that.
Created attachment 711270 [details] backported fix for v5.1 based versions (SLE11-SP3, SLE11-SP4)
(In reply to Aurelien Aptel from comment #15) > Created attachment 711270 [details] > backported fix for v5.1 based versions (SLE11-SP3, SLE11-SP4) Is it ok to provide PTFs with this fix?
Yes.
Sent a maintenance request (id 129584), sorry for the delay.
closing.
*** Bug 1016762 has been marked as a duplicate of this bug. ***