Security mailing lists by PureSourceCode

CVE-2026-143362

not scored yet

bpf: Require prog fd or capability for cgroup detach

In 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.

Published
3 Dec 2026
Last modified
3 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366, < ee7978b00584e4479d52b640d7bc000c3aa21701; >= 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366, < aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb; >= 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366, < 655b2a6215815fdbf164f4fdb09e8b7619e6c505; >= 2c78ee898d8f10ae6fb2fa23a3fbaec96b1b7366, < 2962329f7c86fc51c177d4049c0f15a95ebd270c ee7978b00584e4479d52b640d7bc000c3aa21701, aa92a579ea27b5ff255bc4ef96b1fc7ff1421bfb, 655b2a6215815fdbf164f4fdb09e8b7619e6c505, 2962329f7c86fc51c177d4049c0f15a95ebd270c
CVE List Linux Linux = 5.8

References

History

  • 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
  • 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.