Bug 1095855 (CVE-2014-3215) - CVE-2014-3215 policycoreutils: local privilege escalation via seunshare
Summary: CVE-2014-3215 policycoreutils: local privilege escalation via seunshare
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2014-3215
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1104546 1104547 1104548 1104549 1104551 1104552 1104567 1104568
Blocks: 1095856
TreeView+ depends on / blocked
 
Reported: 2014-05-08 16:39 UTC by Vincent Danen
Modified: 2023-05-13 01:18 UTC (History)
22 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-06-29 09:25:00 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0864 0 normal SHIPPED_LIVE Important: kernel security and bug fix update 2015-04-21 19:00:52 UTC

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


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