Linux AF_PACKET packet_set_ring Out-of-Bounds Write
CVE-2017-7308 is a Linux kernel flaw in the AF_PACKET socket implementation, in packet_set_ring() in net/packet/af_packet.c. The privileged-area size validation for packet-ring block configuration mishandles signedness and does not correctly validate crafted block-size data. A local attacker can issue crafted packet-socket system calls that cause an integer signedness error and an ensuing out-of-bounds kernel write. Linux kernels through 4.10.6 are affected.
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.
Successful exploitation can crash the kernel or otherwise cause local denial of service. An attacker holding CAP_NET_RAW can use the out-of-bounds write to corrupt kernel memory and potentially escalate privileges to kernel-level or root execution. In containerized deployments, CAP_NET_RAW combined with a vulnerable host kernel may make the flaw relevant to container-escape chains.
If you can’t patch tonight, do this now.
Until patched kernels can be deployed, restrict access to packet sockets and remove CAP_NET_RAW from untrusted users, containers, and workloads. Disable unprivileged user namespaces where operationally feasible, as they can enable attackers to obtain namespace-scoped network capabilities needed to reach AF_PACKET. Apply least-privilege container capability policies and prevent untrusted local code execution.
Patch, then assume compromise.
Install a Linux kernel update containing the vendor backport or an upstream kernel version newer than 4.10.6. Distribution-specific kernel security updates that remediate CVE-2017-7308 should be applied, followed by a system reboot so the updated kernel is running.
1 exploit 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.
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.