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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:26.614Z
- **Modified:** 2026-11-30T14:19:44.950Z

> **AI summary (AI-generated, claude-haiku-5-5):** A crafted eBPF program can make the Linux kernel verifier wrongly accept an endless loop over a re-created iterator, causing the kernel to hang.

## Who should check

- Anyone running Linux \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< f5d3e5382dbca1a639fe124a38acd526155a5103; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< fe416645a7c67cd7d1127ea707e7027145ddf2c5; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< 6f3ee3516305da3043f1787e3890381a54151730
- Anyone running Linux 6.4

## 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.

## Affected and fixed versions

- Linux: \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< f5d3e5382dbca1a639fe124a38acd526155a5103; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< fe416645a7c67cd7d1127ea707e7027145ddf2c5; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< 6f3ee3516305da3043f1787e3890381a54151730 (cvelist)
- Linux: 6.4 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 6f3ee3516305da3043f1787e3890381a54151730 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139621. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139621.md
Affected: Linux >= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, < f5d3e5382dbca1a639fe124a38acd526155a5103; >= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, < fe416645a7c67cd7d1127ea707e7027145ddf2c5; >= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, < cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6; >= 06accc8779c1d558a5b5a21…
Fixed in: Linux 6f3ee3516305da3043f1787e3890381a54151730

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139621 being exploited?

There is no confirmed exploitation: CVE-2026-139621 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139621?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139621?

Linux \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< f5d3e5382dbca1a639fe124a38acd526155a5103; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< fe416645a7c67cd7d1127ea707e7027145ddf2c5; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6; \>= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, \< 6f3ee3516305da3043f1787e3890381a54151730; Linux 6.4.

### Is there a fix for CVE-2026-139621?

Yes. Fixed in Linux 6f3ee3516305da3043f1787e3890381a54151730. Upgrade Linux to 6f3ee3516305da3043f1787e3890381a54151730 or later.

### How do I check if I'm affected by CVE-2026-139621?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139621>

HTML: <https://flawdb.com/CVE-2026-139621> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139621>
