Skip to content
FlawDB
Sign in

CVE-2026-139700

UNSCORED

bpf: Fix program BTF use-after-free in sleepable programs

AI summary AI generated

A use-after-free in the Linux kernel BPF subsystem lets sleepable BPF programs dereference freed BTF metadata during object kfunc calls, due to premature BTF release.

Mitigation

  • Upgrade Linux to 88c9c6d0a766dd146545990053e8a04422ccb367 or later.

Who should check

  • Anyone running Linux >= 958cf2e273f0929c66169e0788031310e8118722, < 717b6cb4a424507f62715d79ff31883a6feb56bd; >= 958cf2e273f0929c66169e0788031310e8118722, < cf3240d37c0de66f6beb15961f25e876a20fe358; >= 958cf2e273f0929c66169e0788031310e8118722, < 29c6c52b196c496fc69f8eff0990f8ba38d2af2b; >= 958cf2e273f0929c66169e0788031310e8118722, < d18f1ea4c71eb9a714c258249b14177be1856c35; >= 958cf2e273f0929c66169e0788031310e8118722, < 88c9c6d0a766dd146545990053e8a04422ccb367
  • Anyone running Linux 6.2

Vulnerability facts

Affected
Linux >= 958cf2e273f0929c66169e0788031310e8118722, < 717b6cb4a424507f62715d79ff31883a6feb56bd; >= 958cf2e273f0929c66169e0788031310e8118722, < cf3240d37c0de66f6beb15961f25e876a20fe358; >= 958cf2e273f0929c66169e0788031310e8118722, < 29c6c52b196c496fc69f8eff0990f8ba38d2af2b; >= 958cf2e273f0929c66169e0788031310e8118722, < d18f1ea4c71eb9a714c258249b14177be1856c35; >= 958cf2e273f0929c66169e0788031310e8118722, < 88c9c6d0a766dd146545990053e8a04422ccb367; Linux 6.2
Fixed in
Linux 717b6cb4a424507f62715d79ff31883a6feb56bd, Linux 29c6c52b196c496fc69f8eff0990f8ba38d2af2b, Linux 88c9c6d0a766dd146545990053e8a04422ccb367
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: Fix program BTF use-after-free in sleepable programs Object kfunc calls embed metadata owned by the program BTF. A sleepable program can remain active under Tasks Trace RCU after its last reference is dropped, while program teardown releases the BTF through ordinary RCU. The invocation can then dereference freed metadata in bpf_obj_new(). Move btf_put() into __bpf_prog_put_rcu(), the callback that frees the program. When teardown is deferred, that callback runs after the program's own grace period (Tasks Trace RCU for sleepable programs and ordinary RCU otherwise), so the BTF outlives every active invocation. The non-deferred path invokes the callback synchronously, so load-error cleanup stays direct.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 958cf2e273f0929c66169e0788031310e8118722, < 717b6cb4a424507f62715d79ff31883a6feb56bd; >= 958cf2e273f0929c66169e0788031310e8118722, < cf3240d37c0de66f6beb15961f25e876a20fe358; >= 958cf2e273f0929c66169e0788031310e8118722, < 29c6c52b196c496fc69f8eff0990f8ba38d2af2b; >= 958cf2e273f0929c66169e0788031310e8118722, < d18f1ea4c71eb9a714c258249b14177be1856c35; >= 958cf2e273f0929c66169e0788031310e8118722, < 88c9c6d0a766dd146545990053e8a04422ccb367—cvelist
Linux6.2—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-139700. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139700.md
Affected: Linux >= 958cf2e273f0929c66169e0788031310e8118722, < 717b6cb4a424507f62715d79ff31883a6feb56bd; >= 958cf2e273f0929c66169e0788031310e8118722, < cf3240d37c0de66f6beb15961f25e876a20fe358; >= 958cf2e273f0929c66169e0788031310e8118722, < 29c6c52b196c496fc69f8eff0990f8ba38d2af2b; >= 958cf2e273f0929c66169e0…
Fixed in: Linux 717b6cb4a424507f62715d79ff31883a6feb56bd, Linux 29c6c52b196c496fc69f8eff0990f8ba38d2af2b, Linux 88c9c6d0a766dd146545990053e8a04422ccb367

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-139700 being exploited?

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

How serious is CVE-2026-139700?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2026-139700?

Linux >= 958cf2e273f0929c66169e0788031310e8118722, < 717b6cb4a424507f62715d79ff31883a6feb56bd; >= 958cf2e273f0929c66169e0788031310e8118722, < cf3240d37c0de66f6beb15961f25e876a20fe358; >= 958cf2e273f0929c66169e0788031310e8118722, < 29c6c52b196c496fc69f8eff0990f8ba38d2af2b; >= 958cf2e273f0929c66169e0788031310e8118722, < d18f1ea4c71eb9a714c258249b14177be1856c35; >= 958cf2e273f0929c66169e0788031310e8118722, < 88c9c6d0a766dd146545990053e8a04422ccb367; Linux 6.2.

Is there a fix for CVE-2026-139700?

Yes. Fixed in Linux 717b6cb4a424507f62715d79ff31883a6feb56bd, Linux 29c6c52b196c496fc69f8eff0990f8ba38d2af2b, Linux 88c9c6d0a766dd146545990053e8a04422ccb367. Upgrade Linux to 88c9c6d0a766dd146545990053e8a04422ccb367 or later.

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

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