Vulnerabilities · 2012 · Linux
CVE-2012-6704
Linux Kernel vulnerability
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.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=82981930125abfd39d7c837 · Patch
- github.com/torvalds/linux/commit/82981930125abfd39d7c8378a9cfdf5e1be2002b · Patch
- www.openwall.com/lists/oss-security/2016/12/03/1 · Third Party Advisory
- www.securityfocus.com/bid/95135 · Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=1402024 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2012-6704
- cve.org/CVERecord?id=CVE-2012-6704
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.