CVE-2026-139700

Source
https://cve.org/CVERecord?id=CVE-2026-139700
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139700.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139700
Downstream
Published
2026-11-30T13:37:10Z
Modified
2026-11-30T15:02:30Z
Summary
bpf: Fix program BTF use-after-free in sleepable programs
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139700.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
958cf2e273f0929c66169e0788031310e8118722
Fixed
717b6cb4a424507f62715d79ff31883a6feb56bd
Fixed
cf3240d37c0de66f6beb15961f25e876a20fe358
Fixed
29c6c52b196c496fc69f8eff0990f8ba38d2af2b
Fixed
d18f1ea4c71eb9a714c258249b14177be1856c35
Fixed
88c9c6d0a766dd146545990053e8a04422ccb367

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139700.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139700.json"