Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix out-of-bounds read of sk_protocol in bpf_sock_destroy()

sk_protocol lives in struct sock, not in struct sock_common. A timewait
or request sock handed to bpf_sock_destroy() by the tcp iterator is
neither, so reading sk->sk_protocol runs past the object:

==================================================================
BUG: KASAN: slab-out-of-bounds in bpf_sock_destroy+0xc7/0xe0
Read of size 2 at addr ffff8881047d11b4 by task test_progs/428

Tainted: [W]=WARN
Call Trace:
<TASK>
dump_stack_lvl+0x91/0xf0
print_report+0xd1/0x630
kasan_report+0xf3/0x130
__asan_report_load2_noabort+0x14/0x30
bpf_sock_destroy+0xc7/0xe0
bpf_prog_c3dd61f9d9cd9f37_iter_tcp6_timewait+0x9f/0xb7
bpf_iter_run_prog+0x538/0xde0
bpf_iter_tcp_seq_show+0x26b/0x4b0
bpf_seq_read+0x424/0x1210
vfs_read+0x197/0xe40
ksys_read+0x119/0x240
__x64_sys_read+0x72/0xc0
x64_sys_call+0x647/0x27e0
do_syscall_64+0xe5/0x610
entry_SYSCALL_64_after_hwframe+0x76/0x7e

Only check sk_protocol on full socks. tcp_abort() already knows how to
deal with TIME_WAIT and NEW_SYN_RECV socks. Also fix the comment, it
never matched the code.
Published: 2026-10-09
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel crash leading to denial of service
Action: Update kernel
AI Analysis

Impact

The vulnerability in the Linux kernel occurs when a BPF socket iterator attempts to read the sk_protocol field from a struct sock_common instance, but that field actually resides in struct sock. When a TIME_WAIT or NEW_SYN_RECV socket is passed to bpf_sock_destroy(), the code reads past the end of the object, triggering a KASAN out‑of‑bounds error and typically causing a kernel crash. This flaw represents an out‑of‑bounds read (CWE‑125) that can result in denial of service by crashing the kernel or applications that rely on socket state.

Affected Systems

All versions of the Linux kernel released before the patch that incorporates commit 01b245ba (or any equivalent revision) are affected. The vulnerability is present in the Linux kernel across all supported architectures that implement BPF socket iterators. The product is the Linux kernel distributed by the Linux Foundation.

Risk and Exploitability

The advisory lists an EPSS score of <1% and the vulnerability is not in the CISA KEV catalog, indicating a low likelihood of widespread exploitation. The CVSS score of 5.5 denotes moderate severity. Exploitation requires loading a malicious BPF program that accesses sockets via the iterator interface, a capability normally limited to privileged users. An attacker who can inject the program could trigger an out‑of‑bounds read, leading to a kernel crash and availability disruption, but the practical risk remains moderate until the patch is applied.

Generated by OpenCVE AI on October 11, 2026 at 04:20 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install a kernel version that contains the fix for bpf_sock_destroy, such as the latest stable release that includes commit 01b245ba or later.
  • Reboot the system so that the updated kernel is in use.
  • Restrict BPF program loading to trusted users only, for example by configuring the kernel or using policy modules to prevent untrusted BPF socket iterator usage.

Generated by OpenCVE AI on October 11, 2026 at 04:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Sun, 11 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Sun, 11 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 09 Oct 2026 10:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Fri, 09 Oct 2026 08:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Fix out-of-bounds read of sk_protocol in bpf_sock_destroy() sk_protocol lives in struct sock, not in struct sock_common. A timewait or request sock handed to bpf_sock_destroy() by the tcp iterator is neither, so reading sk->sk_protocol runs past the object: ================================================================== BUG: KASAN: slab-out-of-bounds in bpf_sock_destroy+0xc7/0xe0 Read of size 2 at addr ffff8881047d11b4 by task test_progs/428 Tainted: [W]=WARN Call Trace: <TASK> dump_stack_lvl+0x91/0xf0 print_report+0xd1/0x630 kasan_report+0xf3/0x130 __asan_report_load2_noabort+0x14/0x30 bpf_sock_destroy+0xc7/0xe0 bpf_prog_c3dd61f9d9cd9f37_iter_tcp6_timewait+0x9f/0xb7 bpf_iter_run_prog+0x538/0xde0 bpf_iter_tcp_seq_show+0x26b/0x4b0 bpf_seq_read+0x424/0x1210 vfs_read+0x197/0xe40 ksys_read+0x119/0x240 __x64_sys_read+0x72/0xc0 x64_sys_call+0x647/0x27e0 do_syscall_64+0xe5/0x610 entry_SYSCALL_64_after_hwframe+0x76/0x7e Only check sk_protocol on full socks. tcp_abort() already knows how to deal with TIME_WAIT and NEW_SYN_RECV socks. Also fix the comment, it never matched the code.
Title bpf: Fix out-of-bounds read of sk_protocol in bpf_sock_destroy()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:18:35.149Z

Reserved: 2026-09-25T10:25:14.345Z

Link: CVE-2026-98384

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-09T08:16:56.940

Modified: 2026-10-19T10:18:41.760

Link: CVE-2026-98384

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-09T00:00:00Z

Links: CVE-2026-98384 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-11T04:30:17Z

Weaknesses