# CVE-2026-139700: bpf: Fix program BTF use-after-free in sleepable programs

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

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## Who should check

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

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

- Linux: \>= 958cf2e273f0929c66169e0788031310e8118722, \< 717b6cb4a424507f62715d79ff31883a6feb56bd; \>= 958cf2e273f0929c66169e0788031310e8118722, \< cf3240d37c0de66f6beb15961f25e876a20fe358; \>= 958cf2e273f0929c66169e0788031310e8118722, \< 29c6c52b196c496fc69f8eff0990f8ba38d2af2b; \>= 958cf2e273f0929c66169e0788031310e8118722, \< d18f1ea4c71eb9a714c258249b14177be1856c35; \>= 958cf2e273f0929c66169e0788031310e8118722, \< 88c9c6d0a766dd146545990053e8a04422ccb367 (cvelist)
- Linux: 6.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 88c9c6d0a766dd146545990053e8a04422ccb367 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-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.
```

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

## References

- other: <https://git.kernel.org/stable/c/717b6cb4a424507f62715d79ff31883a6feb56bd>
- other: <https://git.kernel.org/stable/c/cf3240d37c0de66f6beb15961f25e876a20fe358>
- other: <https://git.kernel.org/stable/c/29c6c52b196c496fc69f8eff0990f8ba38d2af2b>
- other: <https://git.kernel.org/stable/c/d18f1ea4c71eb9a714c258249b14177be1856c35>
- other: <https://git.kernel.org/stable/c/88c9c6d0a766dd146545990053e8a04422ccb367>

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

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