{"id":"CVE-2016-4997","published":"2016-07-03T21:00:00Z","modified":"2024-08-06T00:46:40Z","title":"The compat IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt implementations in the netfilter subsystem in the…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.05676,"percentile":0.9317,"provenance":"source"},"cwes":[],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00053.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00060.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.ubuntu.com/usn/USN-3017-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00007.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.ubuntu.com/usn/USN-3017-3","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-1847.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1349722","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00055.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.ubuntu.com/usn/USN-3018-2","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00048.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.ubuntu.com/usn/USN-3017-2","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-1875.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.ubuntu.com/usn/USN-3019-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00027.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.debian.org/security/2016/dsa-3607","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.ubuntu.com/usn/USN-3016-2","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.ubuntu.com/usn/USN-3016-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.openwall.com/lists/oss-security/2016/06/24/5","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00054.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00051.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://www.exploit-db.com/exploits/40435/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c","tags":["x_refsource_CONFIRM"]},{"url":"http://www.ubuntu.com/usn/USN-3018-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.securitytracker.com/id/1036171","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.exploit-db.com/exploits/40489/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05347541","tags":["x_refsource_CONFIRM"]},{"url":"http://www.oracle.com/technetwork/topics/security/ovmbulletinoct2016-3090547.html","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00050.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-1883.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00052.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00044.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.ubuntu.com/usn/USN-3016-3","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00061.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.openwall.com/lists/oss-security/2016/09/29/10","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.ubuntu.com/usn/USN-3016-4","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://www.securityfocus.com/bid/91451","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.6.3","tags":["x_refsource_CONFIRM"]},{"url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ce683e5f9d045e5d67d1312a42b359cb2ab2a13c","tags":["x_refsource_CONFIRM"]},{"url":"http://www.ubuntu.com/usn/USN-3020-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://github.com/nccgroup/TriforceLinuxSyscallFuzzer/tree/master/crash_reports/report_compatIpt","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00000.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":18.63},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":2,"earliest":"2016-09-27"},"metasploit":[{"name":"Linux Kernel 4.6.3 Netfilter Privilege Escalation","module":"exploit/linux/local/netfilter_priv_esc_ipv4","type":"exploit","disclosureDate":"2016-06-03","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/netfilter_priv_esc_ipv4.rb"}],"first":{"date":"2016-06-03","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/netfilter_priv_esc_ipv4.rb"},"provenance":"source"},"summary":{"text":"The compat IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt implementations in the netfilter subsystem of the Linux kernel contain a flaw. An attacker who already has root inside a container can supply a crafted offset value that triggers an unintended decrement, allowing local privilege escalation or denial of service through memory corruption.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:04:49Z"},"euvd":{"id":"EUVD-2016-5962","exploited":false,"provenance":"source"},"exploits":[{"id":40435,"url":"https://www.exploit-db.com/exploits/40435","title":"Linux Kernel 4.6.3 (x86) - 'Netfilter' Local Privilege Escalation (Metasploit)","date":"2016-09-27","verified":true,"provenance":"source"},{"id":40489,"url":"https://www.exploit-db.com/exploits/40489","title":"Linux Kernel 4.6.2 (Ubuntu 16.04.1) - 'IP6T_SO_SET_REPLACE' Local Privilege Escalation","date":"2016-10-10","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/40435/","https://www.exploit-db.com/exploits/40489/"],"lineage":{"familyId":"fam-cve-2016-3134-family-cve-2016-3134","parents":[{"from":"CVE-2016-3134","to":"CVE-2016-4997","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["net/ipv4/netfilter/arp_tables.c","net/ipv4/netfilter/ip_tables.c","net/ipv6/netfilter/ip6_tables.c"],"commits":["https://github.com/torvalds/linux/commit/54d83fc74aa9ec72794373cb47432c5f7fb1a309","https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c"],"basis":"shared function","functions":["arpt_entry","ip6t_entry","ipt_entry"]}]},{"from":"CVE-2016-3135","to":"CVE-2016-4997","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["net/netfilter/x_tables.c"],"commits":["https://github.com/torvalds/linux/commit/d157bd761585605b7882935ffb86286919f62ea1","https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2016-4997","to":"CVE-2016-4998","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["net/ipv4/netfilter/arp_tables.c","net/ipv4/netfilter/ip_tables.c","net/ipv6/netfilter/ip6_tables.c"],"commits":["https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c","https://github.com/torvalds/linux/commit/6e94e0cfb0887e4013b3b930fa6ab1fe6bb6ba91"],"basis":"shared function","functions":["arpt_entry","compat_arpt_entry","compat_ip6t_entry","compat_ipt_entry","ip6t_entry"]}]}]}}