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

Summary

CVECVE-2026-139700
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:59 UTC
Updated2026-11-30 14:19:59 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 958cf2e273f0929c66169e0788031310e8118722 717b6cb4a424507f62715d79ff31883a6feb56bd git Not specified
CNA Linux Linux affected 958cf2e273f0929c66169e0788031310e8118722 cf3240d37c0de66f6beb15961f25e876a20fe358 git Not specified
CNA Linux Linux affected 958cf2e273f0929c66169e0788031310e8118722 29c6c52b196c496fc69f8eff0990f8ba38d2af2b git Not specified
CNA Linux Linux affected 958cf2e273f0929c66169e0788031310e8118722 d18f1ea4c71eb9a714c258249b14177be1856c35 git Not specified
CNA Linux Linux affected 958cf2e273f0929c66169e0788031310e8118722 88c9c6d0a766dd146545990053e8a04422ccb367 git Not specified
CNA Linux Linux affected 6.2 Not specified
CNA Linux Linux unaffected 6.2 semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/88c9c6d0a766dd146545990053e8a04422ccb367 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/29c6c52b196c496fc69f8eff0990f8ba38d2af2b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d18f1ea4c71eb9a714c258249b14177be1856c35 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/cf3240d37c0de66f6beb15961f25e876a20fe358 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/717b6cb4a424507f62715d79ff31883a6feb56bd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report