CVE-2026-139635

In the Linux kernel, the following vulnerability has been resolved: bpf: Keep target extended until its last freplace link detaches The is_extended / prog_array_member_cnt protocol introduced by commit d6083f040d5d ("bpf: Prevent tailcall infinite loop caused by freplace") keeps a prog extended by a freplace program out of prog_array maps, and vice versa: once a tail call re-enters an extended subprogram, its tail_call_cnt resets on every execution and the loop never terminates. But is_extended is a plain boolean, while one target prog can carry several freplace links at the same time, one on its entry and one on a global subprogram. __bpf_trampoline_unlink_prog() cleared is_extended whenever *any* freplace link detached, so detaching one of two links re-armed the unbounded loop through the remaining one. Replace the is_extended boolean with a count of the freplace links attached to each target prog, so the target stays extended until its last link detaches. Also rename bpf_freplace_check_tgt_prog() to bpf_freplace_link_tgt_prog(), as the helper has never been a pure check: it reserves the target prog on success.

Package Linux Kernel
Published 2026-11-30
Last modified 2026-12-06
Patch available
Yes

Affected versions

Linux kernel versions 6.12.5, 6.1.191, 6.6.160, 6.13 and later are affected. Fixed in 6.12.120, 6.18.66, 7.3.6, 7.4-rc1 and their respective stable series.

Affected from
≥ 6.12.5 ≥ 6.1.191 ≥ 6.6.160 ≥ 6.13
Fixed in
✓ 6.12.120 6.12.x ✓ 6.18.66 6.18.x ✓ 7.3.6 7.3.x ✓ 7.4-rc1

Frequently asked questions

  • What is CVE-2026-139635?

    CVE-2026-139635 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.12.5 onward and has been patched in 6.12.120, 6.18.66, 7.3.6 and others. CVE-2026-139635 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-139635?

    Yes. CVE-2026-139635 has been patched. Fixed versions include 6.12.120, 6.18.66, 7.3.6 and others. If you are running Linux kernel 6.12.5 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2026-139635 actively exploited?

    No. CVE-2026-139635 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.