CVE-2012-6657 json
The sock_setsockopt function in net/core/sock.c in the Linux kernel before 3.5.7 does not ensure that a keepalive action is associated with…
published 2014-09-28 12 y ago modified 2026-06-16 4 mo ago also EUVD-2012-6503
- cvss
- 4.9
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
Summary
The sock_setsockopt function in net/core/sock.c in the Linux kernel before 3.5.7 does not ensure that a keepalive action is associated with a stream socket, which allows local users to cause a denial of service (system crash) by leveraging the ability to create a raw socket.
Patch / fix
- linux Debian 14, Debian 13, Debian 12 3.6.4-1
debian advisories DEBIAN-CVE-2012-6657
- kernel RHEL 6 2.6.32-504.3.3.el6
- perf RHEL 6 2.6.32-504.3.3.el6
- python-perf RHEL 6 2.6.32-504.3.3.el6
- kernel-kdump RHEL 6 2.6.32-504.3.3.el6
- kernel-firmware RHEL 6 2.6.32-504.3.3.el6
- kernel-bootwrapper RHEL 6 2.6.32-504.3.3.el6
- kernel-abi-whitelists RHEL 6 2.6.32-504.3.3.el6
- kernel-debuginfo-common-i686 RHEL 6 2.6.32-504.3.3.el6
red hat advisories RHSA-2014:1997
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-6657 updated cvss 4.4
Kernel: net: guard tcp_set_keepalive against crash
-
Red Hat Enterprise Linux 5 kernelaffected: no fix available
-
Red Hat Enterprise Linux Desktop (v. 6) perf 2.6.32-504.3.3.el6, kernel 2.6.32-504.3.3.el6, kernel-firmware 2.6.32-504.3.3.el6, kernel-abi-whitelists 2.6.32-504.3.3.el6, kernel-debuginfo-common-i686 2.6.32-504.3.3.el6, kernel-debuginfo-common-x86_64 2.6.32-504.3.3.el6 Red Hat Enterprise Linux Desktop Optional (v. 6) python-perf 2.6.32-504.3.3.el6, kernel-debuginfo-common-i686 2.6.32-504.3.3.el6, kernel-debuginfo-common-x86_64 2.6.32-504.3.3.el6 Red Hat Enterprise Linux HPC Node (v. 6) perf 2.6.32-504.3.3.el6, kernel 2.6.32-504.3.3.el6, kernel-firmware 2.6.32-504.3.3.el6, kernel-abi-whitelists 2.6.32-504.3.3.el6, kernel-debuginfo-common-x86_64 2.6.32-504.3.3.el6 Red Hat Enterprise Linux HPC Node Optional (v. 6) python-perf 2.6.32-504.3.3.el6, kernel-debuginfo-common-x86_64 2.6.32-504.3.3.el6 Red Hat Enterprise Linux Server (v. 6) perf 2.6.32-504.3.3.el6, kernel 2.6.32-504.3.3.el6, kernel-kdump 2.6.32-504.3.3.el6, kernel-firmware 2.6.32-504.3.3.el6, kernel-bootwrapper 2.6.32-504.3.3.el6, kernel-abi-whitelists 2.6.32-504.3.3.el6, +4 more Red Hat Enterprise Linux Server Optional (v. 6) python-perf 2.6.32-504.3.3.el6, kernel-debuginfo-common-i686 2.6.32-504.3.3.el6, kernel-debuginfo-common-ppc64 2.6.32-504.3.3.el6, kernel-debuginfo-common-s390x 2.6.32-504.3.3.el6, kernel-debuginfo-common-x86_64 2.6.32-504.3.3.el6fixed: vendor fix RHSA-2014:1997
+2 more productsfewer
Red Hat Enterprise Linux Workstation (v. 6) perf 2.6.32-504.3.3.el6, kernel 2.6.32-504.3.3.el6, kernel-firmware 2.6.32-504.3.3.el6, kernel-abi-whitelists 2.6.32-504.3.3.el6, kernel-debuginfo-common-i686 2.6.32-504.3.3.el6, kernel-debuginfo-common-x86_64 2.6.32-504.3.3.el6 Red Hat Enterprise Linux Workstation Optional (v. 6) python-perf 2.6.32-504.3.3.el6, kernel-debuginfo-common-i686 2.6.32-504.3.3.el6, kernel-debuginfo-common-x86_64 2.6.32-504.3.3.el6 -
Red Hat Enterprise Linux 7 perf, kernel, bpftool, python-perf, kernel-kdump, kernel-tools, +3 more Red Hat Enterprise MRG 2 kernelnot 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.53% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/torvalds/linux/commit/3e10986d1d698140747fcfc2761ec9cb64c1d582 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.9 | AV:L/AC:L/Au:N/C:N/I:N/A:C |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
- Technology feeds
References
-
github.com
/torvalds/linux/commit/3e10986d1d698140747fcfc2761ec9cb64c1d582
exploit
-
marc.info
/?l=bugtraq&m=142722450701342&w=2
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2015-04/msg00000.html
vendor-advisory
-
marc.info
/?l=bugtraq&m=142722544401658&w=2
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2015-04/msg00020.html
vendor-advisory
-
kernel.org
/pub/linux/kernel/v3.x/ChangeLog-3.5.7
vendor-advisory
- bugzilla.redhat.com /show_bug.cgi?id=1141742
- git.kernel.org /?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=3e10986d1d698140747fcfc2761ec9cb64c1d582
-
openwall.com
/lists/oss-security/2014/09/15/8
mailing-list
Sources
- CVE List CVE-2012-6657
- NVD CVE-2012-6657
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.