bpf: Require prog fd or capability for cgroup detach

Summary

CVECVE-2026-143362
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 10:18:25 UTC
Updated2026-12-03 10:18:25 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: bpf: Require prog fd or capability for cgroup detach Since the commit below a cgroup prog detach does not require CAP_NET_ADMIN. The fd of the attached prog gives the permission instead. But the detach requires this fd only with BPF_F_ALLOW_MULTI. Without this flag a cgroup has only one prog per attach type. Then find_detach_entry() returns this prog and does not compare it with the prog of the caller. Thus the kernel detaches this prog for a caller with neither the fd nor a capability. Compare the two progs. If they are different, require CAP_NET_ADMIN or CAP_SYS_ADMIN in the initial user namespace. The error is -EPERM. A detach from tcx or netkit without a prog fd already requires these capabilities. With BPF_F_ALLOW_MULTI nothing changes. Without these capabilities, a caller of bpf_prog_detach() of libbpf must now use bpf_prog_detach2() with the fd of the attached prog.

Risk And Classification

EPSS: 0.003680000 probability, percentile 0.327650000 (date 2026-12-03)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366 ee7978b00584e4479d52b640d7bc000c3aa21701 git Not specified
CNA Linux Linux affected 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366 aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb git Not specified
CNA Linux Linux affected 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366 655b2a6215815fdbf164f4fdb09e8b7619e6c505 git Not specified
CNA Linux Linux affected 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366 2962329f7c86fc51c177d4049c0f15a95ebd270c git Not specified
CNA Linux Linux affected 5.8 Not specified
CNA Linux Linux unaffected 5.8 semver Not specified
CNA Linux Linux unaffected 6.12.120 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.66 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.7 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/655b2a6215815fdbf164f4fdb09e8b7619e6c505 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2962329f7c86fc51c177d4049c0f15a95ebd270c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ee7978b00584e4479d52b640d7bc000c3aa21701 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb 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