LWN.net Logo

cifs-utils: denial of service

Package(s):cifs-utils CVE #(s):CVE-2011-2724
Created:August 9, 2011 Updated:September 23, 2011
Description: From the Red Hat bugzilla:

Originally the CVE-2010-0547 identifier has been assigned by Common Vulnerabilities and Exposures to the following security issue:

client/mount.cifs.c in mount.cifs in smbfs in Samba 3.4.5 and earlier does not verify that the (1) device name and (2) mountpoint strings are composed of valid characters, which allows local users to cause a denial of service (mtab corruption) via a crafted string.

Later a bug was found in the upstream patch for this issue. More specifically:

check_mtab() calls check_newline() to check device and directory name. check_newline() returns EX_USAGE (1) when error is detected, while check_mtab() expects -1 to indicate an error.

This bug in original CVE-2010-0547 fix (not to propagate the error properly) caused mount.cifs command on specially-crafted mount point (containing newline character) still to succeed and potentially, to corrupt mtab table on the systems, where CVE-2010-0296 glibc fix was not applied yet.

Alerts:
Mandriva MDVSA-2011:148 2011-10-11
Ubuntu USN-1226-1 2011-10-04
Ubuntu USN-1226-2 2011-10-04
CentOS CESA-2011:1220 2011-09-22
Scientific Linux SL-samb-20110829 2011-08-29
Scientific Linux SL-Samb-20110829 2011-08-29
Red Hat RHSA-2011:1221-01 2011-08-29
Red Hat RHSA-2011:1220-01 2011-08-29
Fedora FEDORA-2011-9847 2011-07-31
Fedora FEDORA-2011-9831 2011-07-31
Oracle ELSA-2012-0313 2012-03-07
Gentoo 201206-22 2012-06-24

(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds