{"id":"CVE-2016-8655","published":"2016-12-08T08:08:00Z","modified":"2024-08-06T02:27:41Z","title":"Race condition in net/packet/af_packet.c in the Linux kernel through 4.8.12 allows local users to gain privileges or…","vendor":null,"product":null,"tier":"tail","description":{"text":"Race condition in net/packet/af_packet.c in the Linux kernel through 4.8.12 allows local users to gain privileges or cause a denial of service (use-after-free) by leveraging the CAP_NET_RAW capability to change a socket version, related to the packet_set_ring and packet_setsockopt functions.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.11127,"percentile":0.96041,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.ubuntu.com/usn/USN-3151-3","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00044.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00077.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00067.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.ubuntu.com/usn/USN-3150-2","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.ubuntu.com/usn/USN-3149-2","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.securityfocus.com/bid/94692","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.securitytracker.com/id/1037968","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://www.ubuntu.com/usn/USN-3150-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00056.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00073.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://rhn.redhat.com/errata/RHSA-2017-0402.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.ubuntu.com/usn/USN-3151-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://rhn.redhat.com/errata/RHSA-2017-0387.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=84ac7260236a49c79eede91617700174c2c19b0c","tags":["x_refsource_CONFIRM"]},{"url":"https://www.exploit-db.com/exploits/40871/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://www.ubuntu.com/usn/USN-3149-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1400019","tags":["x_refsource_CONFIRM"]},{"url":"https://www.exploit-db.com/exploits/44696/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00087.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.ubuntu.com/usn/USN-3151-2","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00070.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://packetstormsecurity.com/files/140063/Linux-Kernel-4.4.0-AF_PACKET-Race-Condition-Privilege-Escalation.html","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2016/12/06/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.ubuntu.com/usn/USN-3152-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.ubuntu.com/usn/USN-3152-2","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://rhn.redhat.com/errata/RHSA-2017-0386.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securitytracker.com/id/1037403","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://www.ubuntu.com/usn/USN-3151-4","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00055.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00054.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://source.android.com/security/bulletin/2017-03-01.html","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00076.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"priority":{"score":24.2,"factors":[{"name":"EPSS percentile","points":19.21},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":4,"earliest":"2016-12-06"},"pocGithub":{"count":5,"skipped":1,"earliest":"2016-12-07","earliestUrl":"https://github.com/scarvell/cve-2016-8655","repos":[{"name":"martinmullins/CVE-2016-8655_Android","url":"https://github.com/martinmullins/CVE-2016-8655_Android","stars":12,"created":"2016-12-17"},{"name":"LakshmiDesai/CVE-2016-8655","url":"https://github.com/LakshmiDesai/CVE-2016-8655","stars":5,"created":"2016-12-08"},{"name":"scarvell/cve-2016-8655","url":"https://github.com/scarvell/cve-2016-8655","stars":0,"created":"2016-12-07"},{"name":"KosukeShimofuji/CVE-2016-8655","url":"https://github.com/KosukeShimofuji/CVE-2016-8655","stars":0,"created":"2016-12-09"},{"name":"agkunkle/chocobo","url":"https://github.com/agkunkle/chocobo","stars":0,"created":"2016-12-09"}]},"metasploit":[{"name":"AF_PACKET chocobo_root Privilege Escalation","module":"exploit/linux/local/af_packet_chocobo_root_priv_esc","type":"exploit","disclosureDate":"2016-08-12","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/af_packet_chocobo_root_priv_esc.rb"}],"first":{"date":"2016-08-12","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/af_packet_chocobo_root_priv_esc.rb"},"provenance":"source"},"summary":{"text":"The flaw is a race condition in net/packet/af_packet.c in the Linux kernel (through 4.8.12), related to the packet_set_ring and packet_setsockopt functions, which can lead to a use-after-free. An attacker with local access who holds the CAP_NET_RAW capability can exploit it by changing a socket version, gaining privileges or causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:51:47Z"},"euvd":{"id":"EUVD-2016-9494","exploited":false,"provenance":"source"},"exploits":[{"id":40871,"url":"https://www.exploit-db.com/exploits/40871","title":"Linux Kernel 4.4.0 (Ubuntu 14.04/16.04 x86-64) - 'AF_PACKET' Race Condition Privilege Escalation","date":"2016-12-06","verified":true,"provenance":"source"},{"id":44696,"url":"https://www.exploit-db.com/exploits/44696","title":"Linux 4.4.0 < 4.4.0-53 - 'AF_PACKET chocobo_root' Local Privilege Escalation (Metasploit)","date":"2018-05-22","verified":true,"provenance":"source"},{"id":44696,"url":"https://www.exploit-db.com/exploits/44696","title":"Linux 4.4.0 < 4.4.0-53 - 'AF_PACKET chocobo_root' Local Privilege Escalation (Metasploit)","date":"2018-05-22","verified":true,"provenance":"source"},{"id":47170,"url":"https://www.exploit-db.com/exploits/47170","title":"Linux Kernel 4.4.0-21 < 4.4.0-51 (Ubuntu 14.04/16.04 x64) - 'AF_PACKET' Race Condition Privilege Escalation","date":"2018-12-29","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/40871/","https://www.exploit-db.com/exploits/44696/","http://packetstormsecurity.com/files/140063/Linux-Kernel-4.4.0-AF_PACKET-Race-Condition-Privilege-Escalation.html"],"lineage":{"familyId":"fam-cve-2016-8655-family-cve-2016-8655","children":[{"from":"CVE-2016-8655","to":"CVE-2017-15649","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["net/packet/af_packet.c"],"commits":["https://github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c","https://github.com/torvalds/linux/commit/4971613c1639d8e5f102c4e797c3bf8f83a5a69e","https://github.com/torvalds/linux/commit/008ba2a13f2d04c947adc536d19debb8fe66f110"],"basis":"shared function","functions":["sock"]}]},{"from":"CVE-2016-8655","to":"CVE-2017-6346","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["net/packet/af_packet.c"],"commits":["https://github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c","https://github.com/torvalds/linux/commit/d199fab63c11998a602205f7ee7ff7c05c97164b"],"basis":"shared function","functions":["sock"]}]},{"from":"CVE-2016-8655","to":"CVE-2017-1000111","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This new issue is analogous to previously disclosed CVE-2016-8655.","from":"CVE.org","in":"CVE-2017-1000111"}]}]}}