Bug 1400019 - (CVE-2016-8655) CVE-2016-8655 kernel: Race condition in packet_set_ring leads to use after free
CVE-2016-8655 kernel: Race condition in packet_set_ring leads to use after free
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20161206,repo...
: Security
Depends On: 1401820 1401852 1401853 1401854 1401855 1401856 1401857
Blocks: 1400022
  Show dependency treegraph
 
Reported: 2016-11-30 05:02 EST by Adam Mariš
Modified: 2017-09-05 01:04 EDT (History)
38 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A race condition issue leading to a use-after-free flaw was found in the way the raw packet sockets implementation in the Linux kernel networking subsystem handled synchronization while creating the TPACKET_V3 ring buffer. A local user able to open a raw packet socket (requires the CAP_NET_RAW capability) could use this flaw to elevate their privileges on the system.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-09-05 01:04:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2016-11-30 05:02:22 EST
A race condition vulnerability was found in packet_set_ring that can lead to use after free on a function pointer. This vulnerability can be used to gain kernel code execution for the local attacker capable of creating AF_PACKET sockets. This issue was introduced with following commit:

https://github.com/torvalds/linux/commit/f6fb8f100b807378fda19e83e5ac6828b638603a
Comment 1 Adam Mariš 2016-11-30 05:02:36 EST
Acknowledgments:

Name: Philip Pettersson
Comment 4 Andrej Nemec 2016-12-06 03:10:58 EST
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1401820]
Comment 5 Andrej Nemec 2016-12-06 03:11:21 EST
Public via:

http://seclists.org/oss-sec/2016/q4/607
Comment 7 Petr Matousek 2016-12-06 04:15:16 EST
Statement:

This issue does not affect Red Hat Enterprise Linux 5 and 6.

This issue does affect Red Hat Enterprise Linux 7 and Red Hat Enterprise MRG 2. Future updates for the respective releases will address this issue.

In a default or common use of Red Hat Enterprise Linux 7 this issue does not allow an unprivileged local user elevate their privileges on the system.

In order to exploit this issue the attacker needs CAP_NET_RAW capability, which needs to be granted by the administrator to the attacker's account. Since Red Hat Enterprise Linux 7 does not have unprivileged user namespaces enabled by default, local unprivileged users also cannot abuse namespaces to grant this capability to themselves and elevate their privileges.
Comment 22 dafox7777777 2017-01-24 03:52:34 EST
bump
Comment 23 errata-xmlrpc 2017-03-02 11:04:22 EST
This issue has been addressed in the following products:

  Red Hat Enterprise MRG 2

Via RHSA-2017:0402 https://rhn.redhat.com/errata/RHSA-2017-0402.html
Comment 24 errata-xmlrpc 2017-03-02 12:16:44 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:0386 https://rhn.redhat.com/errata/RHSA-2017-0386.html
Comment 25 errata-xmlrpc 2017-03-02 12:25:01 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:0387 https://rhn.redhat.com/errata/RHSA-2017-0387.html

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