CVE-2026-139309: bpf: Bound the nesting that the BTF show code follows
bpf: Bound the nesting that the BTF show code follows
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
Event History
Frequently Asked Questions
Who can trigger this issue?
An attacker needs the ability to load BTF, which requires CAP_BPF or a BPF token. They must also be able to provide a deeply nested struct or array type as the value type of a BPF map.
What action triggers the kernel panic?
The panic occurs when the bpffs file for the crafted map is read. The BTF display code recursively renders nested structs and arrays, and a few hundred nesting levels can overrun the kernel stack and hit its guard page.
What happens after the fix when excessively nested BTF is displayed?
BTF display nesting is limited to 32 levels. Content beyond that depth is not shown, and the operation returns -E2BIG through bpf_snprintf_btf() and bpf_seq_printf_btf().
Is deeply nested BTF expected in a typical kernel configuration?
The provided x86_64 defconfig kernel types nest only 14 levels deep. The issue requires intentionally constructed BTF with substantially deeper nesting.