Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2016-8655: Linux AF_PACKET race condition enabling local privilege escalation

Published Dec 8, 2016 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS11.1%96th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendors
LinuxCanonical
IdentifiersCVE-2016-8655CWE-362 · Concurrent Execution using Shared…

CVE-2016-8655 is a race condition in the Linux kernel AF_PACKET subsystem affecting kernels through version 4.8.12. The vulnerability involves the packet_set_ring and packet_setsockopt functions and can be triggered by a local user with CAP_NET_RAW capability changing a socket version. Exploitation can cause a use-after-free, enabling privilege escalation or denial of service.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

A local attacker with CAP_NET_RAW capability can gain elevated privileges or cause a denial of service through a kernel use-after-free.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, consider disabling unprivileged user namespaces (e.g., via sysctl kernel.unprivileged_userns_clone=0) to reduce the attack surface. Restrict CAP_NET_RAW capability to trusted users only. Monitor for suspicious activity indicative of local privilege escalation attempts. Note that these mitigations do not fully eliminate the risk and patching is strongly recommended.

Remediation

Patch, then assume compromise.

Upgrade to a patched Linux kernel version (4.4.0-53.74 or later for Ubuntu 14.04/16.04, or the equivalent patched version for other distributions). Ensure all systems are running a kernel version that includes the fix for CVE-2016-8655. The fix involves proper locking in the affected functions to prevent the race condition and use-after-free.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
af_packet_chocobo_root_priv_esc.rbThis repository contains a single Metasploit module: 'AF_PACKET chocobo_root Privilege Escalation' (modules/exploits/linux/local/af_packet_chocobo_root_priv_esc.rb). The module exploits a race condition and use-after-free vulnerability (CVE-2016-8655) in the Linux kernel's AF_PACKET implementation (packet_set_ring function) to escalate privileges to root. The exploit targets Ubuntu (Trusty/Xenial) and Linux Mint systems running vulnerable kernels (4.4.0 < 4.4.0-53), requiring unprivileged user namespaces, at least two CPU cores, and SMAP to be disabled. The module uploads and compiles (or drops a precompiled) exploit binary and a Metasploit-generated payload to a writable directory (default: /tmp), executes the exploit to gain root, and runs the payload as root. The exploit is operational and provides root access if successful. The only fingerprintable endpoint is the use of the /tmp directory for file operations. The module is not a detection script and is a fully functional local privilege escalation exploit.Disclosed Aug 12, 2016 · Framework: metasploit · ruby · localWeaponizedCVE-2016-8655This repository contains a local privilege escalation exploit for CVE-2016-8655, targeting a race condition in the Linux kernel's AF_PACKET implementation. The main file, 'CVE-2016-8655.c', is a C program that exploits this vulnerability to gain root privileges on affected systems. The exploit is specifically tailored for Ubuntu 16.04 x86_64 with kernel versions 4.4.0-36-generic, 4.4.0-47-generic, and 4.4.0-51-generic, but includes offsets for other kernel versions (though these are untested and may crash the system). The exploit works by manipulating kernel memory and sysctl tables via a race condition, ultimately allowing the attacker to execute code as root. Upon successful exploitation, the binary sets itself as SUID root and spawns a root shell by executing /bin/bash. The repository also includes a README.md with usage instructions and background information. No network endpoints are involved; the attack vector is purely local, requiring execution on the target machine.LakshmiDesai · Disclosed Dec 8, 2016 · c · localOperationalCVE-2016-8655_AndroidThis repository is a comprehensive exploit toolkit targeting the CVE-2016-5195 (Dirty COW) vulnerability and related race conditions in the Linux kernel, specifically as implemented in the Android goldfish 3.4 emulator kernel and similar devices (e.g., Moto G4/harpia). The structure is modular, with directories for different device targets (goldfish, harpia, rabit_hole) and supporting kernel modules (mod_exploit, mod_nop). The main exploit logic is implemented in C, with Makefiles for cross-compilation to ARM/Android. The exploit works by leveraging a race condition in AF_PACKET socket handling to achieve arbitrary kernel code execution. The payload is injected via a kernel module and demonstrated by writing to the kernel tracing buffer. The repository includes scripts and binaries for deploying and running the exploit on an Android device or emulator. The attack vector is local privilege escalation, requiring code execution on the target device. The exploit is operational and can be adapted for full privilege escalation or other kernel-level attacks. Notable endpoints include /sys/kernel/debug/tracing/trace, /proc/self/pagemap, and local socket connections to 127.0.0.1. The codebase is large and well-structured, with clear separation between device-specific and generic exploit components.martinmullins · Disclosed Dec 17, 2016 · c · bash · localOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CanonicalUbuntu Linuxoperating_system
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2016-8655 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2016-8655?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2016-8655, the earliest disclosed Aug 12, 2016.
Is there a patch for CVE-2016-8655?
Upgrade to a patched Linux kernel version (4.4.0-53.74 or later for Ubuntu 14.04/16.04, or the equivalent patched version for other distributions). Ensure all systems are running a kernel version that includes the fix for CVE-2016-8655.
What products are affected by CVE-2016-8655?
Linux Kernel and Canonical Ubuntu Linux.
How severe is CVE-2016-8655?
CVE-2016-8655 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 11.1% (96th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.