Bug 807252 (CVE-2012-1586) - CVE-2012-1586 samba / cifs-utils: mount.cifs file existence disclosure vulnerability
Summary: CVE-2012-1586 samba / cifs-utils: mount.cifs file existence disclosure vulner...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2012-1586
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 812782 812783
Blocks: 784298 807254
TreeView+ depends on / blocked
 
Reported: 2012-03-27 11:15 UTC by Jan Lieskovsky
Modified: 2021-02-24 12:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-19 04:49:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0902 0 normal SHIPPED_LIVE Low: cifs-utils security, bug fix, and enhancement update 2012-06-19 19:28:35 UTC

Description Jan Lieskovsky 2012-03-27 11:15:13 UTC
A file existence dislosure flaw was found in the way mount.cifs tool of the Samba SMB/CIFS tools suite performed mount of a Linux CIFS (Common Internet File System) filesystem. A local user, able to mount a remote CIFS share / target to a local directory could use this flaw to confirm (non) existence of a file system object (file, directory or process descriptor) via error messages generated during the mount.cifs tool run.

Upstream bug report:
[1] https://bugzilla.samba.org/show_bug.cgi?id=8821

References:
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665923

CVE request:
[3] http://www.openwall.com/lists/oss-security/2012/03/27/1

Comment 1 Jeff Layton 2012-03-27 12:14:17 UTC
It's not clear to me what the proposed remedy is. Should we just not print
the reason for the chdir() failure?

Comment 2 Kurt Seifried 2012-03-27 16:04:20 UTC
Assigned CVE as per http://www.openwall.com/lists/oss-security/2012/03/27/6

Comment 3 Jeff Layton 2012-03-28 12:19:37 UTC
Note too that this is not a real issue for RHEL as we have (quite wisely)
never shipped mount.cifs as a setuid binary. Customers may change the
perms on it after the fact, but it's not a problem in the default configuration.

Once we have a fix upstream, we may as well take it for RHEL, but I don't
think it's urgent.

Comment 4 Jeff Layton 2012-04-02 13:50:04 UTC
Patch sent upstream. I plan to wait 2-3 days and then commit it if no one comments.

http://article.gmane.org/gmane.linux.kernel.cifs/5854

Comment 10 Huzaifa S. Sidhpurwala 2012-04-16 08:33:04 UTC
Created cifs-utils tracking bugs for this issue

Affects: fedora-all [bug 812783]

Comment 13 Huzaifa S. Sidhpurwala 2012-04-17 05:48:15 UTC
This issue affects the version of samba/samba3x as shipped with Red Hat Enterprise 5 and the version of cifs-utils as shipped with Red Hat Enterprise Linux 6.

mount.cifs has been the subject of many "security" bugs that have arisen because of users and distributions installing it as a setuid root program.

mount.cifs has not been audited for security. Thus, we strongly recommend that it not be installed setuid root.

The version of mount.cifs in Red Hat Enterprise Linux 6, has an improved code quality, as compared with the version in Red Hat Enterprise Linux 5, making it relatively safer (but still very risky) to use it as a setuid root program.

Statement:

This issue affects the version of samba/samba3x as shipped with Red Hat Enterprise Linux 5. This issue is not currently planned to be addressed in future updates.

Comment 14 Fedora Update System 2012-05-01 00:52:10 UTC
cifs-utils-5.4-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2012-05-01 00:56:33 UTC
cifs-utils-5.4-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2012-05-02 04:47:32 UTC
cifs-utils-5.4-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 errata-xmlrpc 2012-06-20 07:28:09 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2012:0902 https://rhn.redhat.com/errata/RHSA-2012-0902.html


Note You need to log in before you can comment on or make changes to this bug.