UBUNTU-CVE-2026-98384: Medium severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix out-of-bounds read of skprotocol in bpfsockdestroy() skprotocol lives in struct sock, not in struct sockcommon. A timewait or request sock handed to bpfsockdestroy() by the tcp iterator is neither, so reading sk->skprotocol runs past the object: ================================================================== BUG: KASAN: slab-out-of-bounds in bpfsockdestroy+0xc7/0xe0 Read of size 2 at addr ffff8881047d11b4 by task testprogs/428 Tainted: [W]=WARN Call Trace: <TASK> dumpstacklvl+0x91/0xf0 printreport+0xd1/0x630 kasanreport+0xf3/0x130 asanreportload2noabort+0x14/0x30 bpfsockdestroy+0xc7/0xe0 bpfprogc3dd61f9d9cd9f37itertcp6timewait+0x9f/0xb7 bpfiterrunprog+0x538/0xde0 bpfitertcpseqshow+0x26b/0x4b0 bpfseqread+0x424/0x1210 vfsread+0x197/0xe40 ksysread+0x119/0x240 x64sysread+0x72/0xc0 x64syscall+0x647/0x27e0 dosyscall64+0xe5/0x610 entrySYSCALL64afterhwframe+0x76/0x7e Only check skprotocol on full socks. tcpabort() already knows how to deal with TIMEWAIT and NEWSYNRECV socks. Also fix the comment, it never matched the code.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1