Buffer overflow in Linux Kernel
CVE-2016-9793
The sock_setsockopt function in net/core/sock.c in the Linux kernel before 4.8.14 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_SNDBUFFORCE or (2) SO_RCVBUFFORCE option.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.016, 75.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- WhatsWrongAndWhy/CVE-2016-9793 (last pushed 2026-07-15)
Also mentioned in 52 other repositories (0xTo/linux-kernel-exploits, Al1ex/LinuxEelvation, albinjoshy03/linux-kernel-exploits, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/torvalds/linux/commit/b98b0bc8c431e3ceb4b26b0dfc8db509518fb290 (Patch, Vendor Advisory)
- www.securitytracker.com/id/1037968 (Third Party Advisory, VDB Entry, vdb-entry)
- git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/ (Patch, Vendor Advisory)
- RHSA-2017:0932 (vendor-advisory, Third Party Advisory)
- github.com/xairy/kernel-exploits/tree/master/CVE-2016-9793 (Third Party Advisory)
- www.securityfocus.com/bid/94655 (Third Party Advisory, VDB Entry, vdb-entry)
- [oss-security] 20161202 Re: CVE Request: Linux: signed overflows for SO_{SND|RCV}BUFFORCE (mailing-list, Patch, Mailing List, Third Party Advisory)
- www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.8.14 (Release Notes, Vendor Advisory)
- RHSA-2017:0933 (vendor-advisory, Third Party Advisory)
- RHSA-2017:0931 (vendor-advisory, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.