Security mailing lists by PureSourceCode

CVE-2026-139621

not scored yet

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

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.

Published
30 Nov 2026
Last modified
30 Nov 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, < f5d3e5382dbca1a639fe124a38acd526155a5103; >= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, < fe416645a7c67cd7d1127ea707e7027145ddf2c5; >= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, < cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6; >= 06accc8779c1d558a5b5a21f2ac82b0c95827ddd, < 6f3ee3516305da3043f1787e3890381a54151730 f5d3e5382dbca1a639fe124a38acd526155a5103, fe416645a7c67cd7d1127ea707e7027145ddf2c5, cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6, 6f3ee3516305da3043f1787e3890381a54151730
CVE List Linux Linux = 6.4

References

History

  • 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 13:58 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.