Skip to content

Conversation

@kernel-patches-daemon-bpf
Copy link

Pull request for series with
subject: bpf: Fix tcx/netkit detach permissions when prog fd isn't given
version: 5
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1047660

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.

Fixes: e420bed ("bpf: Add fd-based tcx multi-prog infra with link support")
Signed-off-by: Guillaume Gonnet <ggonnet.linux@gmail.com>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 63804fe
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1047660
version: 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants