Skip to content
FlawDB
Sign in

CVE-2026-139635

UNSCORED

bpf: Keep target extended until its last freplace link detaches

AI summary AI generated

An attacker with local BPF access could re-arm an unbounded tail call loop in the Linux kernel by detaching one of two freplace links on the same target program.

Mitigation

  • Upgrade Linux to 6.7 or later.

Who should check

  • Anyone running Linux >= 987aa730bad3e1ef66d9f30182294daa78f6387d, < 49e6b0de165005abfbd167ba5e62076a4898b85e; >= d6083f040d5d8f8d748462c77e90547097df936e, < 0743d6510161be50143e52cb91fccd4868f7f048; >= d6083f040d5d8f8d748462c77e90547097df936e, < 6403c2d2503edda61c24b75b178b62b558232a59; >= d6083f040d5d8f8d748462c77e90547097df936e, < c43c348a84460b003fa757dd43d8c89848ae220d; 272f92998cbec9e12fea8ef28f48d6b1bc625a34; f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= 6.12.5, < 6.12.120; >= 6.1.191, < 6.2; >= 6.6.160, < 6.7
  • Anyone running Linux 6.13

Vulnerability facts

Affected
Linux >= 987aa730bad3e1ef66d9f30182294daa78f6387d, < 49e6b0de165005abfbd167ba5e62076a4898b85e; >= d6083f040d5d8f8d748462c77e90547097df936e, < 0743d6510161be50143e52cb91fccd4868f7f048; >= d6083f040d5d8f8d748462c77e90547097df936e, < 6403c2d2503edda61c24b75b178b62b558232a59; >= d6083f040d5d8f8d748462c77e90547097df936e, < c43c348a84460b003fa757dd43d8c89848ae220d; 272f92998cbec9e12fea8ef28f48d6b1bc625a34; f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= 6.12.5, < 6.12.120; >= 6.1.191, < 6.2; >= 6.6.160, < 6.7; Linux 6.13
Fixed in
Linux 49e6b0de165005abfbd167ba5e62076a4898b85e, Linux 0743d6510161be50143e52cb91fccd4868f7f048, Linux 6403c2d2503edda61c24b75b178b62b558232a59, Linux 6.12.120, Linux 6.2, Linux 6.7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 987aa730bad3e1ef66d9f30182294daa78f6387d, < 49e6b0de165005abfbd167ba5e62076a4898b85e; >= d6083f040d5d8f8d748462c77e90547097df936e, < 0743d6510161be50143e52cb91fccd4868f7f048; >= d6083f040d5d8f8d748462c77e90547097df936e, < 6403c2d2503edda61c24b75b178b62b558232a59; >= d6083f040d5d8f8d748462c77e90547097df936e, < c43c348a84460b003fa757dd43d8c89848ae220d; 272f92998cbec9e12fea8ef28f48d6b1bc625a34; f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= 6.12.5, < 6.12.120; >= 6.1.191, < 6.2; >= 6.6.160, < 6.7—cvelist
Linux6.13—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2026-139635.md
Affected: Linux >= 987aa730bad3e1ef66d9f30182294daa78f6387d, < 49e6b0de165005abfbd167ba5e62076a4898b85e; >= d6083f040d5d8f8d748462c77e90547097df936e, < 0743d6510161be50143e52cb91fccd4868f7f048; >= d6083f040d5d8f8d748462c77e90547097df936e, < 6403c2d2503edda61c24b75b178b62b558232a59; >= d6083f040d5d8f8d748462c…
Fixed in: Linux 49e6b0de165005abfbd167ba5e62076a4898b85e, Linux 0743d6510161be50143e52cb91fccd4868f7f048, Linux 6403c2d2503edda61c24b75b178b62b558232a59, Linux 6.12.120, Linux 6.2, Linux 6.7

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.

Technologies

References

FAQ

Is CVE-2026-139635 being exploited?

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

How serious is CVE-2026-139635?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2026-139635?

Linux >= 987aa730bad3e1ef66d9f30182294daa78f6387d, < 49e6b0de165005abfbd167ba5e62076a4898b85e; >= d6083f040d5d8f8d748462c77e90547097df936e, < 0743d6510161be50143e52cb91fccd4868f7f048; >= d6083f040d5d8f8d748462c77e90547097df936e, < 6403c2d2503edda61c24b75b178b62b558232a59; >= d6083f040d5d8f8d748462c77e90547097df936e, < c43c348a84460b003fa757dd43d8c89848ae220d; 272f92998cbec9e12fea8ef28f48d6b1bc625a34; f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= 6.12.5, < 6.12.120; >= 6.1.191, < 6.2; >= 6.6.160, < 6.7; Linux 6.13.

Is there a fix for CVE-2026-139635?

Yes. Fixed in Linux 49e6b0de165005abfbd167ba5e62076a4898b85e, Linux 0743d6510161be50143e52cb91fccd4868f7f048, Linux 6403c2d2503edda61c24b75b178b62b558232a59, Linux 6.12.120, Linux 6.2, Linux 6.7. Upgrade Linux to 6.7 or later.

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

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-140063

Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker

Linux kernel+1
MEDIUM 5.1CVE-2026-140038

Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber

Linux kernel+1
HIGH 7.3CVE-2026-139801

KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Linux kernel
UNSCOREDCVE-2026-139800

9p/xen: drain response work after unbinding IRQ

Linux kernel
HIGH 7.0CVE-2026-139799

mm/shmem: hold off eviction in shmem_writeout()

Linux kernel
Sponsors