bpf: Fix tcx/netkit detach permissions when prog fd isn't given
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel allowed any local user to detach a BPF program from a tcx or netkit device when no program file descriptor was provided. In that case, BPF_PROG_DETACH bypassed permission checks; the fix requires CAP_NET_ADMIN or CAP_SYS_ADMIN.
Engineers running Linux kernels with tcx or netkit support should check their kernel; affected versions were not specified.