CVE-2017-7308

high
Published 2017-03-29 ยท Modified 2026-05-13
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
8.8

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.

Predictions

Exploit likelihood
100%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-44654 local linux verified
Metasploit ยท 2018-05-18

Linux 4.8.0 < 4.8.0-46 - AF_PACKET packet_set_ring Privilege Escalation (Metasploit)

Source code queued for fetch โ€” refresh in a moment.
EDB-47168 local linux
bcoles ยท 2018-12-29

Linux Kernel 4.8.0-34 < 4.8.0-45 (Ubuntu / Linux Mint) - Packet Socket Local Privilege Escalation

Source code queued for fetch โ€” refresh in a moment.
EDB-41994 local linux verified
Andrey Konovalov ยท 2017-05-11

Linux Kernel 4.8.0-41-generic (Ubuntu) - Packet Socket Local Privilege Escalation

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

AF_PACKET packet_set_ring Privilege Escalation
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

linux Linux kernel Affected 1 release
VersionStatusFixed in
โ€” Affected 3.2.89
suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 4.9.18-1
sid Fixed 4.9.18-1
forky Fixed 4.9.18-1
bullseye Fixed 4.9.18-1
bookworm Fixed 4.9.18-1

References

CWEs

CWE-681 CWE-787

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.