CVE-2026-139308: bpf: Fix stale offload->prog pointer after realloc
bpf: Fix stale offload->prog pointer after realloc
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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 realistically trigger this issue?
An attacker needs permission to load a device-bound XDP program: CAP_BPF and CAP_NET_ADMIN, or a BPF token. They also need access to a device that can be removed or unregistered while the program is loaded.
What happens when the vulnerable condition is triggered?
A program reallocation can leave the device offload structure pointing to the old, freed program. If the device is then unregistered, the kernel can dereference that stale pointer in __bpf_prog_offload_destroy(), causing a page fault.
Is device removal required for exploitation?
Yes. The described fault occurs when a device-bound program has been reallocated and the associated device is unregistered; the description notes that the device is not kept while the program is loaded, so unregistration can race with program replacement.