What’s Vulnerable › Vulnerabilities
CVE-2017-7308
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 17.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2017-03-29 · updated 2026-06-17
- Weakness: CWE-681
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.
Affected products
- Linux kernel: from 2.6.27 before 3.2.89; from 3.3 before 3.10.107; from 3.11 before 3.12.74; from 3.13 before 3.16.44; from 3.17 before 3.18.52; from 3.19 before 4.1.41 — fixed in 3.10.107, 3.12.74, 3.16.44, 3.18.52, 3.2.89, 4.1.41
How to fix
Upgrade to a fixed version: Linux kernel 3.10.107, 3.12.74, 3.16.44, 3.18.52. Check the vendor advisory for mitigations.
References
- http://www.securityfocus.com/bid/97234
- https://access.redhat.com/errata/RHSA-2017:1297
- https://access.redhat.com/errata/RHSA-2017:1298
- https://access.redhat.com/errata/RHSA-2017:1308
- https://access.redhat.com/errata/RHSA-2018:1854
- https://googleprojectzero.blogspot.com/2017/05/exploiting-linux-kernel-via-packet.html
- https://patchwork.ozlabs.org/patch/744811/
- https://patchwork.ozlabs.org/patch/744812/
- https://patchwork.ozlabs.org/patch/744813/
- https://source.android.com/security/bulletin/2017-07-01
- https://www.exploit-db.com/exploits/41994/
- https://www.exploit-db.com/exploits/44654/
Get alerted when CVE-2017-7308 or the next vulnerability affects your stack