Skip to content
OpenAdvisories
Unscored Public exploit CVE-2016-4997 EUVD-2016-5962GHSA-qc28-hwmc-pw94

The compat IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt implementations in the netfilter subsystem in the Linux kernel before 4.6.…

Published Jul 3, 2016 · Updated Aug 6, 2024 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 4.6.2-2 —
Debian 13 linux 4.6.2-2 —
Debian 12 linux 4.6.2-2 —
Debian 8 linux 3.16.7-ckt25-2+deb8u2 DSA-3607-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux 4.4.0-28.47 USN-3016-1
Ubuntu 16.04 LTS linux-raspi2 4.4.0-1016.22 USN-3016-2
Ubuntu 16.04 LTS linux-snapdragon 4.4.0-1019.22 USN-3016-3
Ubuntu 14.04 LTS linux 3.13.0-91.138 USN-3018-1
Ubuntu 14.04 LTS linux-lts-utopic 3.16.0-76.98~14.04.1 USN-3019-1
Ubuntu 14.04 LTS linux-lts-vivid 3.19.0-64.72~14.04.1 USN-3020-1
Ubuntu 14.04 LTS linux-lts-wily 4.2.0-41.48~14.04.1 USN-3017-3
Ubuntu 14.04 LTS linux-lts-xenial 4.4.0-28.47~14.04.1 USN-3016-4
ReleasePackageFixed inAdvisory
RHEL 7 kernel-rt +10 3.10.0-327.36.1.rt56.237.el7 RHSA-2016:1875
RHEL 7 perf +18 3.10.0-327.36.1.el7 RHSA-2016:1847
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat MRG 2 kernel-rt +10 1:3.10.0-327.rt56.197.el6rt RHSA-2016:1883
ReleasePackageFixed inAdvisory
SLES 12 SP1 kernel-docs 3.12.59-60.45.4 SUSE-SU-2016:2105-1, SUSE-SU-2016:1709-1
SLES 12 SP1 kernel-obs-build 3.12.59-60.45.3 SUSE-SU-2016:2105-1, SUSE-SU-2016:1709-1
SLES 12 SP1 kernel-syms +1 3.12.59-60.45.1 SUSE-SU-2016:2105-1, SUSE-SU-2016:1709-1
SLES 12 SP1 kernel-xen +1 3.12.59-60.45.2 SUSE-SU-2016:2105-1, SUSE-SU-2016:1709-1
SLES 12 kernel-docs +1 3.12.60-52.54.3 SUSE-SU-2016:1710-1
SLES 12 kernel-ec2 3.12.59-60.45.2 SUSE-SU-2017:0471-1, SUSE-SU-2016:2105-1, SUSE-SU-2016:1710-1
SLES 12 kernel-syms +1 3.12.60-52.54.1 SUSE-SU-2017:0471-1, SUSE-SU-2016:1710-1
SLES 12 kernel-xen +1 3.12.60-52.54.2 SUSE-SU-2017:0471-1, SUSE-SU-2016:1710-1
SLES 12 kgraft-patch-SLE12_Update_10 6-2.1 SUSE-SU-2016:2632-1
SLES 12 kgraft-patch-SLE12_Update_11 5-2.1 SUSE-SU-2016:2633-1
SLES 12 kgraft-patch-SLE12_Update_12 +2 3-2.1 SUSE-SU-2016:2659-1, SUSE-SU-2016:2658-1, SUSE-SU-2016:2655-1
SLES 12 kgraft-patch-SLE12_Update_19 1-2.1 SUSE-SU-2017:0471-1
SLES 12 kgraft-patch-SLE12_Update_9 6-5.1 SUSE-SU-2016:2636-1
SLES 11 SP4 kernel-bigmem 3.0.101-88.1 SUSE-SU-2016:2976-1
SLES 11 SP4 kernel-docs 3.0.101-80.2 SUSE-SU-2016:2976-1, SUSE-SU-2016:2018-1
SLES 11 SP4 kernel-ec2 +7 3.0.101-80.1 SUSE-SU-2016:2976-1, SUSE-SU-2016:2018-1
SLES 11 SP3 kernel-ec2 +7 3.0.101-0.47.86.1 SUSE-SU-2016:2245-1
SLES 11 SP2 kernel-ec2 +6 3.0.101-0.7.53.1 SUSE-SU-2017:0333-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP1 kernel-syms +1 3.12.59-60.45.1 SUSE-SU-2016:2105-1, SUSE-SU-2016:1709-1
SLES for SAP 12 SP1 kernel-xen +1 3.12.59-60.45.2 SUSE-SU-2016:2105-1, SUSE-SU-2016:1709-1
SLES for SAP 12 kernel-syms +1 3.12.60-52.54.1 SUSE-SU-2017:0471-1, SUSE-SU-2016:1710-1
SLES for SAP 12 kernel-xen +1 3.12.60-52.54.2 SUSE-SU-2017:0471-1, SUSE-SU-2016:1710-1
SLES for SAP 12 kgraft-patch-SLE12_Update_10 6-2.1 SUSE-SU-2016:2632-1
SLES for SAP 12 kgraft-patch-SLE12_Update_11 5-2.1 SUSE-SU-2016:2633-1
SLES for SAP 12 kgraft-patch-SLE12_Update_12 +2 3-2.1 SUSE-SU-2016:2659-1, SUSE-SU-2016:2658-1, SUSE-SU-2016:2655-1
SLES for SAP 12 kgraft-patch-SLE12_Update_19 1-2.1 SUSE-SU-2017:0471-1
SLES for SAP 12 kgraft-patch-SLE12_Update_9 6-5.1 SUSE-SU-2016:2636-1
SLES for SAP 11 SP4 kernel-bigmem 3.0.101-88.1 SUSE-SU-2016:2976-1
SLES for SAP 11 SP4 kernel-ec2 +7 3.0.101-80.1 SUSE-SU-2016:2976-1, SUSE-SU-2016:2018-1
SLE Real Time 12 SP2 kernel-rt +3 4.4.74-7.10.1 SUSE-SU-2017:1990-1
SLE Real Time 12 SP1 kernel-rt +5 3.12.61-60.18.1 SUSE-SU-2016:3304-1, SUSE-SU-2016:1937-1
SLE Real Time 11 SP4 kernel-rt +3 3.0.101.rt130-57.1 SUSE-SU-2017:2342-1, SUSE-SU-2016:3069-1, SUSE-SU-2016:1985-1
SLE Live Patching 12 kgraft-patch-SLE12-SP1_Update_0 6-17.2 SUSE-SU-2016:2174-1
SLE Live Patching 12 kgraft-patch-SLE12-SP1_Update_1 6-2.1 SUSE-SU-2016:2181-1
SLE Live Patching 12 kgraft-patch-SLE12-SP1_Update_2 5-2.1 SUSE-SU-2016:2179-1
SLE Live Patching 12 kgraft-patch-SLE12-SP1_Update_3 4-2.1 SUSE-SU-2016:2178-1
SLE Live Patching 12 kgraft-patch-SLE12-SP1_Update_4 +1 3-2.1 SUSE-SU-2016:2180-1, SUSE-SU-2016:2177-1
SLE Live Patching 12 kgraft-patch-SLE12-SP1_Update_7 1-4.2 SUSE-SU-2016:2105-1
SLE Live Patching 12 kgraft-patch-SLE12_Update_15 +1 1-2.3 SUSE-SU-2016:1710-1, SUSE-SU-2016:1709-1
SUSE OpenStack Cloud 5 kernel-ec2 +6 3.0.101-0.47.86.1 SUSE-SU-2016:2245-1
SUSE Manager Proxy 2.1 kernel-ec2 +6 3.0.101-0.47.86.1 SUSE-SU-2016:2245-1
SUSE Manager 2.1 kernel-ec2 +6 3.0.101-0.47.86.1 SUSE-SU-2016:2245-1
SUSE Linux Enterprise Point of Sale 11 SP3 kernel-ec2 +6 3.0.101-0.47.86.1 SUSE-SU-2016:2245-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed kernel-source 4.8.13-1.1 openSUSE-SU-2024:10128-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 dtrace-modules-3.8.13-118.11.2.el6uek 0.4.5-3.el6 ELSA-2016-3617
Oracle Linux 7 dtrace-modules-3.8.13-118.11.2.el7uek 0.4.5-3.el7 ELSA-2016-3617
Oracle Linux 7 dtrace-modules-4.1.12-61.1.10.el6uek 0.5.3-2.el6 ELSA-2016-3619
Oracle Linux 7 dtrace-modules-4.1.12-61.1.10.el7uek 0.5.3-2.el7 ELSA-2016-3619
Oracle Linux 7 kernel-uek +5 3.8.13-118.11.2.el7uek ELSA-2016-3619, ELSA-2016-3617
Oracle Linux 7 perf +11 3.10.0-327.36.1.el7 ELSA-2016-1847

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 43

References