Linux kernel netfilter compat offset decrement privilege escalation
CVE-2016-4997 is an integer-underflow-related memory-corruption vulnerability in the Linux kernel netfilter compatibility implementations of the IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt operations. In kernels before 4.6.3, a crafted offset supplied during compatibility-mode table replacement can trigger an unintended decrement. A local attacker with root access inside a container can use the flaw to corrupt kernel memory, resulting in denial of service or potential privilege escalation.
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 corrupt kernel memory, crash the system, or potentially elevate a local attacker’s privileges beyond the container or other initially constrained execution context.
If you can’t patch tonight, do this now.
Restrict untrusted users’ ability to create or administer user and network namespaces, particularly granting capabilities usable for netfilter configuration within containers. Limit container root access and apply least-privilege container capability policies until patched kernels are deployed.
Patch, then assume compromise.
Upgrade to Linux kernel version 4.6.3 or later, or apply the vendor-supported kernel update that includes the fix for CVE-2016-4997. Reboot into the updated kernel.
1 exploit validated by Mallory's analysis. Hidden: 1 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 and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.