{"api_version":"1","generated_at":"2026-12-04T04:10:22+00:00","cve":"CVE-2026-143362","urls":{"html":"https://cve.report/CVE-2026-143362","api":"https://cve.report/api/cve/CVE-2026-143362.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143362","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143362"},"summary":{"title":"bpf: Require prog fd or capability for cgroup detach","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Require prog fd or capability for cgroup detach\n\nSince the commit below a cgroup prog detach does not require CAP_NET_ADMIN.\nThe fd of the attached prog gives the permission instead. But the detach\nrequires this fd only with BPF_F_ALLOW_MULTI. Without this flag a cgroup\nhas only one prog per attach type. Then find_detach_entry() returns this\nprog and does not compare it with the prog of the caller. Thus the kernel\ndetaches this prog for a caller with neither the fd nor a capability.\n\nCompare the two progs. If they are different, require CAP_NET_ADMIN or\nCAP_SYS_ADMIN in the initial user namespace. The error is -EPERM. A detach\nfrom tcx or netkit without a prog fd already requires these capabilities.\nWith BPF_F_ALLOW_MULTI nothing changes.\n\nWithout these capabilities, a caller of bpf_prog_detach() of libbpf must\nnow use bpf_prog_detach2() with the fd of the attached prog.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:25","updated_at":"2026-12-03 10:18:25"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/655b2a6215815fdbf164f4fdb09e8b7619e6c505","name":"https://git.kernel.org/stable/c/655b2a6215815fdbf164f4fdb09e8b7619e6c505","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2962329f7c86fc51c177d4049c0f15a95ebd270c","name":"https://git.kernel.org/stable/c/2962329f7c86fc51c177d4049c0f15a95ebd270c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ee7978b00584e4479d52b640d7bc000c3aa21701","name":"https://git.kernel.org/stable/c/ee7978b00584e4479d52b640d7bc000c3aa21701","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb","name":"https://git.kernel.org/stable/c/aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143362","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143362","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366 ee7978b00584e4479d52b640d7bc000c3aa21701 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366 aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366 655b2a6215815fdbf164f4fdb09e8b7619e6c505 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366 2962329f7c86fc51c177d4049c0f15a95ebd270c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143362","cve":"CVE-2026-143362","epss":"0.003680000","percentile":"0.327650000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/cgroup.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ee7978b00584e4479d52b640d7bc000c3aa21701","status":"affected","version":"2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366","versionType":"git"},{"lessThan":"aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb","status":"affected","version":"2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366","versionType":"git"},{"lessThan":"655b2a6215815fdbf164f4fdb09e8b7619e6c505","status":"affected","version":"2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366","versionType":"git"},{"lessThan":"2962329f7c86fc51c177d4049c0f15a95ebd270c","status":"affected","version":"2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/cgroup.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.8"},{"lessThan":"5.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Require prog fd or capability for cgroup detach\n\nSince the commit below a cgroup prog detach does not require CAP_NET_ADMIN.\nThe fd of the attached prog gives the permission instead. But the detach\nrequires this fd only with BPF_F_ALLOW_MULTI. Without this flag a cgroup\nhas only one prog per attach type. Then find_detach_entry() returns this\nprog and does not compare it with the prog of the caller. Thus the kernel\ndetaches this prog for a caller with neither the fd nor a capability.\n\nCompare the two progs. If they are different, require CAP_NET_ADMIN or\nCAP_SYS_ADMIN in the initial user namespace. The error is -EPERM. A detach\nfrom tcx or netkit without a prog fd already requires these capabilities.\nWith BPF_F_ALLOW_MULTI nothing changes.\n\nWithout these capabilities, a caller of bpf_prog_detach() of libbpf must\nnow use bpf_prog_detach2() with the fd of the attached prog."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:15.598Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ee7978b00584e4479d52b640d7bc000c3aa21701"},{"url":"https://git.kernel.org/stable/c/aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb"},{"url":"https://git.kernel.org/stable/c/655b2a6215815fdbf164f4fdb09e8b7619e6c505"},{"url":"https://git.kernel.org/stable/c/2962329f7c86fc51c177d4049c0f15a95ebd270c"}],"title":"bpf: Require prog fd or capability for cgroup detach","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143362","datePublished":"2026-12-03T09:22:15.598Z","dateReserved":"2026-12-03T03:10:28.371Z","dateUpdated":"2026-12-03T09:22:15.598Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:25","lastModifiedDate":"2026-12-03 10:18:25","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143362","Ordinal":"1","Title":"bpf: Require prog fd or capability for cgroup detach","CVE":"CVE-2026-143362","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143362","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Require prog fd or capability for cgroup detach\n\nSince the commit below a cgroup prog detach does not require CAP_NET_ADMIN.\nThe fd of the attached prog gives the permission instead. But the detach\nrequires this fd only with BPF_F_ALLOW_MULTI. Without this flag a cgroup\nhas only one prog per attach type. Then find_detach_entry() returns this\nprog and does not compare it with the prog of the caller. Thus the kernel\ndetaches this prog for a caller with neither the fd nor a capability.\n\nCompare the two progs. If they are different, require CAP_NET_ADMIN or\nCAP_SYS_ADMIN in the initial user namespace. The error is -EPERM. A detach\nfrom tcx or netkit without a prog fd already requires these capabilities.\nWith BPF_F_ALLOW_MULTI nothing changes.\n\nWithout these capabilities, a caller of bpf_prog_detach() of libbpf must\nnow use bpf_prog_detach2() with the fd of the attached prog.","Type":"Description","Title":"bpf: Require prog fd or capability for cgroup detach"}]}}}