CVE-2012-6704 Memory corruption in n/a
Local attackers with CAP_NET_ADMIN can trigger memory corruption and system crashes via crafted setsockopt calls in the Linux kernel.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-6704?
CVE-2012-6704 is a high-severity memory corruption vulnerability in Linux kernel, published on 28 Dec 2016. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-119
Which versions are affected by CVE-2012-6704?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2012-6704?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2012-6704 being exploited?
There is no known exploitation of CVE-2012-6704 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2012-6704, GHSA-xqxm-8fx9-rwr3.