Heap-out-of-bounds write in Linux kernel and linux_kernel (Debian package) - CVE-2017-7308
Published: May 12, 2017 / Updated: June 17, 2021
Vulnerability details
The weakness exists due to improper validation of certain block-size data by the packet_set_ring function in net/packet/af_packet.c. A local attacker can provide specific parameters to the PACKET_RX_RING option on an AF_PACKET socket with a TPACKET_V3 ring buffer version enabled, trigger heap-out-of-bounds write and cause denial of service.
Successful exploitation of the vulnerability results in denial of service.
Affected software
CentOS
SUSE Linux
Ubuntu
Fedora
linux_kernel (Debian package)
kernel
How to mitigate CVE-2017-7308
Links to Public Exploits and PoC-codes
- Exploit #6368 - Linux 4.8.0 < 4.8.0-46 - AF_PACKET packet_set_ring Privilege Escalation (Metasploit) (June 17, 2021)
- Exploit #6061 - Linux Kernel 4.8.0-34 < 4.8.0-45 (Ubuntu / Linux Mint) - Packet Socket Local Privilege Escalation (June 17, 2021)
- Exploit #1180 - Linux Kernel 4.8.0 (Ubuntu) - Packet Socket Local Privilege Escalation (March 18, 2020)
External References
Related Security Bulletins
- Denial of service in Linux kernel
- SUSE Linux update for Linux kernel
- CentOS 7 update for kernel
- Ubuntu update for Linux kernel (HWE)
- Ubuntu update for Linux kernel
- SUSE Linux update for Linux Kernel Live Patch 19 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 15 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 13 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 16 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 18 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 17 for SLE 12
- SUSE Linux update for Linux Kernel Live Patch 5 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 14 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 6 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 0 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 9 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 12 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 10 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 6 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 4 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 11 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 5 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 1 for SLE 12 SP2
- SUSE Linux update for Linux Kernel Live Patch 13 for SLE 12 SP1
- SUSE Linux update for Linux Kernel Live Patch 2 for SLE 12 SP2
- Fedora 25 update for kernel
- Fedora 24 update for kernel