A vulnerability in the Linux kernel's BPF subsystem allowed detaching a cgroup program without proper permissions. The flaw permitted detaching a program without requiring CAP_NET_ADMIN or CAP_SYS_ADMIN capabilities if the program file descriptor (fd) was not provided and the BPF_F_ALLOW_MULTI flag was not set. This could lead to unauthorized detachment of BPF programs from cgroups. The issue has been resolved by requiring the caller to have the appropriate capabilities or provide the correct program fd when detaching.