CVE-2012-6704

high
Published 2016-12-28 · 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 v2
7.2
VIR risk
7.8

Description

The sock_setsockopt function in net/core/sock.c in the Linux kernel before 3.5 mishandles negative values of sk_sndbuf and sk_rcvbuf, which allows local users to cause a denial of service (memory corruption and system crash) or possibly have unspecified other impact by leveraging the CAP_NET_ADMIN capability for a crafted setsockopt system call with the (1) SO_SNDBUF or (2) SO_RCVBUF option.

Predictions

Exploit likelihood
75%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2012-6704

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://github.com/torvalds/linux/commit/82981930125abfd39d7c8378a9cfdf5e1be2002b

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=82981930125abfd39d7c8378a9cfdf5e1be2002b

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2012-6704.html

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debianbookwormfixed3.8.11-1
debian debianbullseyefixed3.8.11-1
debian debianforkyfixed3.8.11-1
debian debiansidfixed3.8.11-1
debian debiantrixiefixed3.8.11-1
linux linux-kernelaffected3.2.85

References

CWEs

CWE-119

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