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.
CVE-2012-6704
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2022-05-17. NVD baseline CVSS 7.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8HIGHmedium confidence
- EG Risk
- 40EG Risk 40/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity78% × 45%Exploitation0% × 40%Automatability30% × 15%CISA SSVC: Track at low or medium mission impact; Track or Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 0.4%
- EPSS %ILE
- 33rd
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track or Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (no KEV listing, exploit record or EPSS ≥ 50%) · Automatable unknown (not published for this CVE) · Technical impact partial (CVSS below 9.0). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
December 28, 2016
Last Modified
June 16, 2026
Advisory Details (5)
Auto-updated Sep 29, 2026commit 82981930125a (torvalds/linux)
Fix landed in torvalds/linux commit 82981930125a — awaiting tagged release
https://github.com/torvalds/linux/commit/82981930125abfd39d7c8378a9cfdf5e1be2002b1402024 – (CVE-2012-6704) CVE-2012-6704 kernel: Signed overflows in SO_{SND|RCV}BUF in sock_setsockopt()
Affected: Red Hat Enterprise Linux 5, 6, 7, MRG-2 and realtime.
https://bugzilla.redhat.com/show_bug.cgi?id=1402024oss-security - Re: CVE Request: Linux: signed overflows for SO_{SND|RCV}BUFFORCE
http://www.openwall.com/lists/oss-security/2016/12/03/1net: cleanups in sock_setsockopt() - kernel/git/torvalds/linux.git - Linux kernel source tree
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=82981930125abfd39d7c8378a9cfdf5e1be2002bAffected Packages
(5 across 5 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| linux | — |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| linux | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| linux | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| linux | — |
| — |
Debian:7(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| linux | 3.2.41-2 ... 3.2.82-1 (61 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 4× in last 7d / 16× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 144 total refreshes for this CVE.
- 2026-10-05 17:38 UTCEPSS rescore
- 2026-10-04 23:16 UTCEPSS rescore
- 2026-09-30 14:58 UTCEPSS rescore
- 2026-09-29 08:34 UTCEG score recompute
- 2026-09-27 13:39 UTCEPSS rescore
- 2026-09-26 15:52 UTCEPSS rescore
- 2026-09-24 13:57 UTCEPSS rescore
- 2026-09-20 20:08 UTCEPSS rescore
- 2026-09-18 19:21 UTCEPSS rescore
- 2026-09-18 18:20 UTCOSV refresh
- 2026-09-15 03:04 UTCEPSS rescore
- 2026-09-13 16:40 UTCEPSS rescore
- 2026-09-12 14:55 UTCEPSS rescore
- 2026-09-11 09:30 UTCEPSS rescore
- 2026-09-07 15:56 UTCEPSS rescore
- 2026-09-06 13:42 UTCEPSS rescore
- 2026-09-05 15:22 UTCEPSS rescore
- 2026-09-04 13:55 UTCEPSS rescore
- 2026-09-02 14:06 UTCEPSS rescore
- 2026-09-01 13:47 UTCEPSS rescore
- 2026-08-30 21:34 UTCOSV refresh
- 2026-08-27 14:20 UTCEPSS rescore
- 2026-08-26 14:40 UTCEPSS rescore
- 2026-08-25 13:43 UTCEPSS rescore
- 2026-08-24 07:23 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-20 22:50 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-18 13:42 UTCEPSS rescore
- 2026-08-16 02:09 UTCEPSS rescore
- 2026-08-15 01:25 UTCEPSS rescore
- 2026-08-14 08:16 UTCOSV refresh
- 2026-08-12 13:45 UTCEPSS rescore
- 2026-08-09 13:42 UTCEPSS rescore
- 2026-08-08 16:31 UTCEPSS rescore
- 2026-08-07 16:21 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:12 UTCEPSS rescore
- 2026-08-04 15:04 UTCEPSS rescore
- 2026-08-02 02:22 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-29 16:07 UTCOSV refresh
- 2026-07-28 15:31 UTCEPSS rescore
- 2026-07-25 14:12 UTCEPSS rescore
- 2026-07-23 14:14 UTCEPSS rescore
- 2026-07-23 01:09 UTCEG score recompute
- 2026-07-23 00:12 UTCEG score recompute
- 2026-07-22 21:50 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:03 UTCEPSS rescore
- 2026-07-20 17:03 UTCEPSS rescore
- 2026-07-19 14:27 UTCEPSS rescore
- 2026-07-19 14:27 UTCEPSS rescore
- 2026-07-19 02:25 UTCEPSS rescore
- 2026-07-19 02:25 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-16 16:58 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 06:08 UTCEPSS rescore
- 2026-07-12 05:22 UTCOSV refresh
- 2026-07-11 08:23 UTCEPSS rescore
- 2026-07-09 19:05 UTCEPSS rescore
- 2026-07-06 02:19 UTCEPSS rescore
- 2026-07-06 02:19 UTCEPSS rescore
- 2026-07-05 02:26 UTCEPSS rescore
- 2026-07-04 06:27 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-28 14:03 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-25 13:46 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 11:30 UTCOSV refresh
- 2026-06-22 14:22 UTCEPSS rescore
- 2026-06-22 14:22 UTCEPSS rescore
- 2026-06-21 14:53 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:56 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 19:22 UTCEPSS rescore
- 2026-06-18 17:49 UTCEPSS rescore
- 2026-06-18 17:49 UTCEPSS rescore
- 2026-06-17 17:49 UTCEPSS rescore
- 2026-06-17 17:49 UTCEPSS rescore
- 2026-06-16 17:49 UTCEPSS rescore
- 2026-06-16 17:49 UTCEPSS rescore
- 2026-06-15 17:44 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:08 UTCEPSS rescore
Related CVEs(same product + same CWE)
Same product
10 shownDebian:7:linux
- CVE-2015-8104EG 10.0CRITICAL
- CVE-2015-1421EG 10.0EPSS p95HIGH
- CVE-2017-18017EG 9.8EPSS p99CRITICAL
- CVE-2017-7895EG 9.8EPSS p96CRITICAL
- CVE-2016-9555EG 9.8EPSS p95CRITICAL
- CVE-2016-3955EG 9.8EPSS p98CRITICAL
- CVE-2015-8812EG 9.8EPSS p97CRITICAL
- CVE-2015-3331EG 9.3EPSS p96HIGH
- CVE-2016-5195NVD 7.0EG 9.0 KEVEPSS p100CRITICAL
- CVE-2014-3153NVD 7.8EG 9.0 KEVEPSS p98CRITICAL
Frequently asked(5)
What is CVE-2012-6704?
When was CVE-2012-6704 disclosed?
Is CVE-2012-6704 actively exploited?
What is the CVSS score of CVE-2012-6704?
How do I remediate CVE-2012-6704?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2012-6704
Is Your Infrastructure Affected by CVE-2012-6704?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.