# CVE-2026-139621: bpf: Don't converge a loop on an iterator that was created anew

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:26.614Z
- Modified: 2026-11-30T14:19:44.950Z
- Assigned by: Linux

## Description

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

bpf: Don't converge a loop on an iterator that was created anew

When the verifier reaches bpf_iter_*_next() in a state that is equal to
a state that is still being explored it concludes that the loop
converged, since an active iterator will be drained eventually.
states_equal() matches ids through idmap, so the same is concluded for
an iterator that was destroyed and created again since the old state:

  bpf_iter_num_new(&it, 0, 10);
  loop:
          if (bpf_ktime_get_ns())
                  goto remake;
  next:
          if (!bpf_iter_num_next(&it))
                  goto out;
          goto loop;
  remake:
          bpf_iter_num_destroy(&it);
          bpf_iter_num_new(&it, 0, 10);
          goto next;

Such prog is accepted when the call of bpf_iter_num_next() is the first
prune point after bpf_iter_num_new() and it never returns. Otherwise
it's rejected with "infinite loop detected".

Require the iterator to have the same id in both states.

(As written by CVE List.)

## Affected

- Linux Linux: from 06accc8779c1d558a5b5a21f2ac82b0c95827ddd before f5d3e5382dbca1a639fe124a38acd526155a5103; from 06accc8779c1d558a5b5a21f2ac82b0c95827ddd before fe416645a7c67cd7d1127ea707e7027145ddf2c5; from 06accc8779c1d558a5b5a21f2ac82b0c95827ddd before cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6; from 06accc8779c1d558a5b5a21f2ac82b0c95827ddd before 6f3ee3516305da3043f1787e3890381a54151730; 6.4 (not affected: before 6.4; from 6.12.120 up to 6.12.*; from 6.18.66 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/f5d3e5382dbca1a639fe124a38acd526155a5103>
- <https://git.kernel.org/stable/c/fe416645a7c67cd7d1127ea707e7027145ddf2c5>
- <https://git.kernel.org/stable/c/cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6>
- <https://git.kernel.org/stable/c/6f3ee3516305da3043f1787e3890381a54151730>

## Sources

- CVE List: [CVE-2026-139621](https://www.cve.org/CVERecord?id=CVE-2026-139621), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139621](https://nvd.nist.gov/vuln/detail/CVE-2026-139621), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139621 · Whole record: https://cve.day/CVE-2026-139621.json · Rebuilt by cve.day 2026-11-30T14:33:05.766Z
