Use-after-free in Linux kernel BPF sleepable program BTF
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
In the Linux kernel from 6.2, fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc1, a use-after-free in BPF program BTF handling affects sleepable programs. A sleepable program can stay active after its last reference is dropped, while teardown releases the program BTF too early, so object kfunc calls can read freed metadata in bpf_obj_new(). The fix moves btf_put() into the callback that frees the program, so the BTF lives until the program's grace period ends.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update the Linux kernel to 6.6.163, 6.12.119, 6.18.65, 7.3.6, or 7.4-rc1 or later, depending on the release branch in use.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139700
- 2026-11-30 Alias added: GHSA-xvhh-2wv2-w3f9
References
Other 5
- https://git.kernel.org/stable/c/717b6cb4a424507f62715d79ff31883a6feb56bd
- https://git.kernel.org/stable/c/cf3240d37c0de66f6beb15961f25e876a20fe358
- https://git.kernel.org/stable/c/29c6c52b196c496fc69f8eff0990f8ba38d2af2b
- https://git.kernel.org/stable/c/d18f1ea4c71eb9a714c258249b14177be1856c35
- https://git.kernel.org/stable/c/88c9c6d0a766dd146545990053e8a04422ccb367
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139700 · CVE Program
- CVE-2026-139700 · NVD
- GHSA-xvhh-2wv2-w3f9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences