CVE-2026-139621: bpf: Don't converge a loop on an iterator that was created anew
bpf: Don't converge a loop on an iterator that was created anew
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.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - 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
What BPF program pattern can be accepted despite containing an infinite loop?
The affected pattern destroys an iterator and creates it again inside a loop, then reaches bpf_iter_num_next() as the first verifier prune point after the new call. In the shown flow, the program is accepted when that loop never returns.
Would the verifier reject the same non-terminating logic in other control-flow layouts?
Yes. The described program is otherwise rejected with an "infinite loop detected" error when bpf_iter_num_next() is not the first prune point after bpf_iter_num_new().
What verifier behavior does the fix change?
The fix requires the iterator to have the same ID in both states before treating a loop as converged. This prevents a destroyed and newly created iterator from being treated as the previously active iterator.