CVE-2016-4997

high
Published 2016-07-03 ยท Modified 2026-05-06
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
8.8

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.

Predictions

Exploit likelihood
100%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-40489 local linux
Qian Zhang ยท 2016-10-10

Linux Kernel 4.6.2 (Ubuntu 16.04.1) - 'IP6T_SO_SET_REPLACE' Local Privilege Escalation

Source code queued for fetch โ€” refresh in a moment.
EDB-40435 local linux_x86 verified
Metasploit ยท 2016-09-27

Linux Kernel 4.6.3 (x86) - 'Netfilter' Local Privilege Escalation (Metasploit)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Linux Kernel 4.6.3 Netfilter Privilege Escalation
Source code queued for fetch โ€” refresh in a moment.

OS impact

linux Linux kernel Affected 1 release
VersionStatusFixed in
โ€” Affected 3.2.80
suse SUSE Affected 2 releases
VersionStatusFixed in
12.0 Affected โ€”
โ€” Affected โ€”
ubuntu Ubuntu Affected 4 releases
VersionStatusFixed in
16.04 Affected โ€”
15.10 Affected โ€”
14.04 Affected โ€”
12.04 Affected โ€”
debian Debian Mixed 6 releases
VersionStatusFixed in
trixie Fixed 4.6.2-2
sid Fixed 4.6.2-2
forky Fixed 4.6.2-2
bullseye Fixed 4.6.2-2
bookworm Fixed 4.6.2-2
8.0 Affected โ€”

Application impact

VendorProductVersionsFixed
suse novellsuse_linux_enterprise_software_development_kit12.0

References

CWEs

CWE-264

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.