Linux AF_PACKET race condition enabling local privilege escalation
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
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.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.