CVE-2026-139700
publishedbpf: Fix program BTF use-after-free in sleepable programs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux958cf2e273f0929c66169e0788031310e8118722 to < 717b6cb4a424507f62715d79ff31883a6feb56bd · 958cf2e273f0929c66169e0788031310e8118722 to < cf3240d37c0de66f6beb15961f25e876a20fe358 · 958cf2e273f0929c66169e0788031310e8118722 to < 29c6c52b196c496fc69f8eff0990f8ba38d2af2b · 958cf2e273f0929c66169e0788031310e8118722 to < d18f1ea4c71eb9a714c258249b14177be1856c35 · 958cf2e273f0929c66169e0788031310e8118722 to < 88c9c6d0a766dd146545990053e8a04422ccb367 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 958cf2e273f0929c66169e0788031310e8118722 to < 717b6cb4a424507f62715d79ff31883a6feb56bd (affected · git)958cf2e273f0929c66169e0788031310e8118722 to < cf3240d37c0de66f6beb15961f25e876a20fe358 (affected · git)958cf2e273f0929c66169e0788031310e8118722 to < 29c6c52b196c496fc69f8eff0990f8ba38d2af2b (affected · git)958cf2e273f0929c66169e0788031310e8118722 to < d18f1ea4c71eb9a714c258249b14177be1856c35 (affected · git)958cf2e273f0929c66169e0788031310e8118722 to < 88c9c6d0a766dd146545990053e8a04422ccb367 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.2 (affected)0 to < 6.2 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/29c6c52b196c496fc69f8eff0990f8ba38d2af2b
- https://git.kernel.org/stable/c/717b6cb4a424507f62715d79ff31883a6feb56bd
- https://git.kernel.org/stable/c/88c9c6d0a766dd146545990053e8a04422ccb367
- https://git.kernel.org/stable/c/cf3240d37c0de66f6beb15961f25e876a20fe358
- https://git.kernel.org/stable/c/d18f1ea4c71eb9a714c258249b14177be1856c35
Provider assertions
1Linux · cna
bpf: Fix program BTF use-after-free in sleepable programs
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 79bce95c964909474c240a6a175ea209f6fbe7419f46e95ec1ae988886d99980
- Ingested
- 30 Nov 2026, 13:43:49 UTC
- Source record
- Official CVE record