CVE-2026-45932: bpf: Fix tcx/netkit detach permissions when prog fd isn't given
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix tcx/netkit detach permissions when prog fd isn't given
This commit fixes a security issue where BPF_PROG_DETACH on tcx or netkit devices could be executed by any user when no program fd was provided, bypassing permission checks. The fix adds a capability check for CAP_NET_ADMIN or CAP_SYS_ADMIN in this case.
The Linux kernel CVE team has assigned CVE-2026-45932 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit e420bed025071a623d2720a92bc2245c84757ecb and fixed in 6.18.14 with commit 4e0772cded109c238411f2fac36ac39302758b81 Issue introduced in 6.6 with commit e420bed025071a623d2720a92bc2245c84757ecb and fixed in 6.19.4 with commit 3f04cc1e5374da4c5e791ae010a06cfea7bacbe6 Issue introduced in 6.6 with commit e420bed025071a623d2720a92bc2245c84757ecb and fixed in 7.0 with commit ae23bc81ddf7c17b663c4ed1b21e35527b0a7131
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-45932
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
include/linux/bpf.h
include/linux/bpf_mprog.h
kernel/bpf/syscall.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/4e0772cded109c238411f2fac36ac39302758b81 https://git.kernel.org/stable/c/3f04cc1e5374da4c5e791ae010a06cfea7bacbe6 https://git.kernel.org/stable/c/ae23bc81ddf7c17b663c4ed1b21e35527b0a7131