Bug 1095855 (CVE-2014-3215)

Summary: CVE-2014-3215 policycoreutils: local privilege escalation via seunshare
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: agordeev, aquini, carnil, dhoward, dwalsh, eparis, fhrbata, jkurik, kernel-mgr, lvrabec, lwang, mgrepl, mmalik, nobody, npajkovs, plautrba, pmatouse, pmoore, pvrabec, sgrubb, ssekidde, vkrizan
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A flaw was found in the way seunshare, a utility for running executables under a different security context, used the capng_lock functionality of the libcap-ng library. The subsequent invocation of suid root binaries that relied on the fact that the setuid() system call, among others, also sets the saved set-user-ID when dropping the binaries' process privileges, could allow a local, unprivileged user to potentially escalate their privileges on the system. Note: the fix for this issue is the kernel part of the overall fix, and introduces the PR_SET_NO_NEW_PRIVS functionality and the related SELinux exec transitions support.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-29 09:25:00 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: 1104546, 1104547, 1104548, 1104549, 1104551, 1104552, 1104567, 1104568    
Bug Blocks: 1095856    

Description Vincent Danen 2014-05-08 16:39:41 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2014-3215 to
the following vulnerability:

Name: CVE-2014-3215
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3215
Assigned: 20140503
Reference: http://openwall.com/lists/oss-security/2014/04/29/7
Reference: http://openwall.com/lists/oss-security/2014/04/30/4
Reference: http://openwall.com/lists/oss-security/2014/05/08/1

seunshare in policycoreutils 2.2.5 is owned by root with 4755
permissions, and executes programs in a way that changes the
relationship between the setuid system call and the getresuid saved
set-user-ID value, which makes it easier for local users to gain
privileges by leveraging a program that mistakenly expected that it
could permanently drop privileges.


Note this was originally reported by Andy Lutomirski in bug #885288 (also see bug #1035427 (and its attached patch, which is for libcap-ng)).

Comment 16 Petr Matousek 2015-04-21 11:57:24 UTC
Acknowledgements:

Red Hat would like to thank Andy Lutomirski for reporting this issue.

Comment 18 errata-xmlrpc 2015-04-21 15:01:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2015:0864 https://rhn.redhat.com/errata/RHSA-2015-0864.html