Re: [PATCH bpf v2] bpf: Fix potential UAF in bpf_netns_link_update_prog
From: patchwork-bot+netdevbpf
Date: Thu Jul 30 2026 - 18:30:51 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:
On Tue, 28 Jul 2026 02:32:59 +0000 you wrote:
> From: Pu Lehui <pulehui@xxxxxxxxxx>
>
> 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