Re: [PATCH bpf v2] bpf: Fix potential UAF in bpf_netns_link_update_prog
| Newsgroups | org.kernel.vger.bpf,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178545060590.16570.17188493468007032676.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>: On Tue, 28 Jul 2026 02:32:59 +0000 you wrote: > From: Pu Lehui <[email protected]> > > In bpf_netns_link_update_prog, the checks for old_prog and prog type > are currently performed locklessly before acquiring netns_bpf_mutex. > This creates a race condition that can lead to a UAF issue. > > If two threads concurrently execute BPF_LINK_UPDATE on the same netns > link, the following execution path can trigger a UAF: > > [...] Here is the summary with links: - [bpf,v2] bpf: Fix potential UAF in bpf_netns_link_update_prog https://git.kernel.org/bpf/bpf-next/c/5c5997836381 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html