Skip to content
Fencer Intel
high 7.8

CVE-2012-6704 json

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…

published 2016-12-28 9 y ago modified 2026-06-16 4 mo ago also EUVD-2012-6546

cvss
7.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 35%
public exploits
0
none known

Summary

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.

Patch / fix

  • linux linux_kernel 3.2.85, 3.5
  • linux Debian 14, Debian 13, Debian 12 3.8.11-1

debian advisories DEBIAN-CVE-2012-6704

  • kernel-rt SLE Real Time 11 SP4 3.0.101.rt130-68.1
  • kernel-syms-rt SLE Real Time 11 SP4 3.0.101.rt130-68.1
  • kernel-rt_trace SLE Real Time 11 SP4 3.0.101.rt130-68.1
  • kernel-source-rt SLE Real Time 11 SP4 3.0.101.rt130-68.1
  • kernel-ec2 SLES 11 SP3-LTSS, SLE Point of Sale 11 SP3, OpenStack Cloud 5 +2 more 3.0.101-0.47.96.1
  • kernel-pae SLES 11 SP3-LTSS, SLE Point of Sale 11 SP3 3.0.101-0.47.96.1
  • kernel-xen SLES 11 SP3-LTSS, SLE Point of Sale 11 SP3, OpenStack Cloud 5 +2 more 3.0.101-0.47.96.1
  • kernel-syms SLES 11 SP3-LTSS, SLE Point of Sale 11 SP3, OpenStack Cloud 5 +2 more 3.0.101-0.47.96.1

suse advisories SUSE-SU-2017:1102-1SUSE-SU-2017:0494-1SUSE-SU-2017:0437-1SUSE-SU-2017:0333-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2012-6704 updated cvss 6.7

kernel: Signed overflows in SO_{SND|RCV}BUF in sock_setsockopt()

  • Red Hat Enterprise Linux 5 kernel Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise MRG 2 kernel-rt, mrg-rt-release, kernel-rt-trace, kernel-rt-vanilla, kernel-rt-firmware
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.2 AV:L/AC:L/Au:N/C:C/I:C/A:C

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.