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…
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and 2 Exploit-DB entries for it. 2 references of the record are tagged as an exploit.
Metasploit modules1 module
- Linux Kernel 4.6.3 Netfilter Privilege Escalation (Metasploit module) (opens in a new tab)
exploit/linux/local/netfilter_priv_esc_ipv4Rank gooddisclosed 3 Jun 2016
Exploit-DB2 entries
- Linux Kernel 4.6.2 (Ubuntu 16.04.1) - 'IP6T_SO_SET_REPLACE' Local Privilege Escalation (Exploit-DB entry) (opens in a new tab)
EDB-ID 40489local, linuxpublished 10 Oct 2016Not verified
- Linux Kernel 4.6.3 (x86) - 'Netfilter' Local Privilege Escalation (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 40435local, linux_x86published 27 Sept 2016Verified
References tagged exploit2 references
- 40435 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 40489 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By redhat
- 40 days later
· 40 days later
Published
- 8 years later
· 8 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 5.7% · top 7.0% of all CVEs (9 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Weakness
Affected products
n/a
- affected n/a
References (43)
- SUSE-SU-2016:2180 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- SUSE-SU-2016:1709 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- USN-3017-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- SUSE-SU-2016:1985 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- USN-3017-3 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- RHSA-2016:1847 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=1349722 (opens in a new tab)x_refsource_CONFIRMx_transferred
- openSUSE-SU-2016:2184 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- USN-3018-2 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- SUSE-SU-2016:2174 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- USN-3017-2 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- RHSA-2016:1875 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- USN-3019-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- SUSE-SU-2016:2018 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- DSA-3607 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- USN-3016-2 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- USN-3016-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- [oss-security] 20160624 Linux CVE-2016-4997 (local privilege escalation) and CVE-2016-4998 (out of bounds memory access) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- SUSE-SU-2016:2181 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- SUSE-SU-2016:2178 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 40435 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c (opens in a new tab)x_refsource_CONFIRMx_transferred
- USN-3018-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- 1036171 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- 40489 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05347541 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.oracle.com/technetwork/topics/security/ovmbulletinoct2016-3090547.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- SUSE-SU-2016:2177 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- RHSA-2016:1883 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- SUSE-SU-2016:2179 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- SUSE-SU-2016:2105 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- USN-3016-3 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- SUSE-SU-2016:1710 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- [oss-security] 20160929 CVE request - Linux kernel through 4.6.2 allows escalade privileges via IP6T_SO_SET_REPLACE compat setsockopt call (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- USN-3016-4 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- 91451 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.6.3 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ce683e5f9d045e5d67d1312a42b359cb2ab2a13c (opens in a new tab)x_refsource_CONFIRMx_transferred
- USN-3020-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- https://github.com/nccgroup/TriforceLinuxSyscallFuzzer/tree/master/crash_reports/report_compatIpt (opens in a new tab)x_refsource_MISCx_transferred
- SUSE-SU-2016:1937 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2016-5962 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2016-4997)Record last updated .