CVE-2026-139298: bpf: Don't take a program with a target program for an iterator
bpf: Don't take a program with a target program for an iterator
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 7cc639dc45c5
Event History
Frequently Asked Questions
What capabilities does an attacker need to trigger this issue?
They need to load a tracing BPF program using BPF_TRACE_ITER with attach_prog_fd pointing to a target program. The problematic path is reached when the target function is treated as an iterator target, such as bpf_iter_bpf_map.
What impact can this have on systems that are vulnerable?
A failed program load can cache an incorrect target BTF ID, preventing already loaded programs for that target from being attached. The forged iterator program can also be attached with verifier context derived from the target function prototype, leading to a KASAN-reported stack out-of-bounds read.
How can administrators recognize possible exploitation or exposure?
Indicators include failures attaching programs that were already loaded for the affected target and KASAN reports of stack-out-of-bounds reads in a generated BPF program. The reported example identifies a read in a forged BPF program while handling an iterator attachment.
What is the available remediation?
Apply a kernel revision containing the fix that refuses iterator programs with a target program. This also covers BPF extensions, which are explicitly included by the change.