Re: [PATCH bpf v3] bpf: Fix potential UAF when reading bpf link info

From: patchwork-bot+netdevbpf

Date: Thu Jul 30 2026 - 18:42:29 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Tue, 28 Jul 2026 02:54:57 +0000 you wrote:
> From: Pu Lehui <pulehui@xxxxxxxxxx>
>
> In bpf_link_show_fdinfo and bpf_link_get_info_by_fd, link->prog is
> accessed without holding any locks. If the prog is concurrently replaced
> via bpf_link_update, the old prog can be freed, leading to a potential
> UAF issue.
>
> [...]

Here is the summary with links:
- [bpf,v3] bpf: Fix potential UAF when reading bpf link info
https://git.kernel.org/bpf/bpf-next/c/863f3ddd0b8a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html