Bug 697394 (CVE-2011-1585)

Summary: CVE-2011-1585 kernel: cifs session reuse
Product: [Other] Security Response Reporter: Eugene Teo (Security Response) <eteo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bhu, dhoward, jkacur, jpirko, kernel-mgr, lgoncalv, lwang, pmatouse, rt-maint, sforsber, sstefano, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-09 06:17:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 697395, 697396, 697397    
Bug Blocks:    

Description Eugene Teo (Security Response) 2011-04-18 06:53:43 UTC
When one user has mounted a cifs share that requires authentication, another user could mount the same share without knowing the correct password.

A way to exploit this would be through mount.cifs if it's installed setuid root.

On Red Hat Enterprise Linux, mount.cifs is not root setuid by default.

Upstream commits:
http://git.kernel.org/linus/4ff67b720c02c36e54d55b88c2931879b7db1cd2
http://git.kernel.org/linus/fc87a40677bbe0937e2ff0642c7e83c9a4813f3d
http://git.kernel.org/linus/24e6cf92fde1f140d8eb0bf7cd24c2c78149b6b2

Comment 3 Eugene Teo (Security Response) 2011-04-18 09:05:30 UTC
Statement:

This issue did not affect the versions of Linux kernel as shipped in Red Hat Enterprise Linux 4, 5, 6, and Red Hat Enterprise MRG as they did not ship mount.cifs with root setuid set. However, as a preventive meaasure, we have addressed this in Red Hat Enterprise Linux 5 and Red Hat Enterprise MRG via https://rhn.redhat.com/errata/RHSA-2011-1386.html and https://rhn.redhat.com/errata/RHSA-2011-1253.html. Red Hat Enterprise Linux 4 is now in Production 3 of the maintenance life-cycle, https://access.redhat.com/support/policy/updates/errata/, therefore the fix for this issue is not currently planned to be included in the future updates.

Comment 4 Sasko Stefanovski 2011-04-28 20:16:00 UTC
Another way to mount the share without correct password is when user has sudo privilege to execute /sbin/mount.cifs (even when mount.cifs does not have setuid)

Ex. I am "userb". "usera" has already mounted a //server/share. 
I can execute the following and provide wrong password:

[userb@localhost]$ sudo /sbin/mount.cifs //server/share ./localmount -o user=usera,domain=windows_domain

Comment 5 Eugene Teo (Security Response) 2011-04-29 05:54:03 UTC
(In reply to comment #4)
> Another way to mount the share without correct password is when user has sudo
> privilege to execute /sbin/mount.cifs (even when mount.cifs does not have
> setuid)
> 
> Ex. I am "userb". "usera" has already mounted a //server/share. 
> I can execute the following and provide wrong password:
> 
> [userb@localhost]$ sudo /sbin/mount.cifs //server/share ./localmount -o
> user=usera,domain=windows_domain

That is why I proposed to have this addressed as a preventive measure. Thanks.

Comment 6 errata-xmlrpc 2011-09-12 19:46:02 UTC
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

Via RHSA-2011:1253 https://rhn.redhat.com/errata/RHSA-2011-1253.html

Comment 7 errata-xmlrpc 2011-10-20 17:29:27 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2011:1386 https://rhn.redhat.com/errata/RHSA-2011-1386.html