CVE-2016-4997: Linux kernel netfilter compat offset decrement privilege escalation
- Vendors
- Debian ProjectOracle CorporationLinuxNovellCanonical
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.
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.
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.
Mitigation
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.
Remediation
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.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
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.
References
Frequently asked questions
- Is CVE-2016-4997 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2016-4997 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2016-4997?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2016-4997, the earliest disclosed Jun 3, 2016.
- Is there a patch for CVE-2016-4997?
- 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.
- What products are affected by CVE-2016-4997?
- Linux Kernel, Oracle Corporation Linux, Debian Project Debian Linux, Novell Suse Linux Enterprise Desktop, Novell Suse Linux Enterprise Live Patching, and 6 more.
- How severe is CVE-2016-4997?
- CVE-2016-4997 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 5.7% (93rd percentile) as of Oct 16, 2026.
Recent activity
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.