CVE-2012-6704
Reported by mitre · Published December 28, 2016
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-snapdragon | Ubuntu:16.04:LTS | 4.4.0-1012.12 |
| linux-aws | Ubuntu:16.04:LTS | 4.4.0-1001.10 |
| linux-raspi2 | Ubuntu:16.04:LTS | 4.2.0-1013.19 |
| linux-lts-xenial | Ubuntu:14.04:LTS | 4.4.0-13.29~14.04.1 |
| linux-aws | Ubuntu:14.04:LTS | 4.4.0-1002.2 |
| linux | Ubuntu:14.04:LTS | 3.11.0-12.19 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Dec 28, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- May 6, 2026 CVE Updated
- Jun 2, 2026 Security Advisory
- Oct 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2012-6704
vulnetix vdb fixes CVE-2012-6704
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2012-6704/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 95135 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- [oss-security] 20161202 Re: CVE Request: Linux: signed overflows for SO_{SND|RCV}BUFFORCE mailing-listx_refsource_MLIST
- x_refsource_CONFIRM