🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by patchwork-bot+netdevbpf Wed, 02 Dec 2026 02:40
Re: [PATCH net] phonet: fix use-after-free in can_respond()
#25563
Author: patchwork-bot+netdevbpf
Date: Wed, 02 Dec 2026 02:40
25 lines
8823 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:

On Wed, 25 Nov 2026 22:16:27 +0000 you wrote:
> In can_respond(), ph is cached before pskb_may_pull(skb, 5). When
> ph->pn_res == PN_PREFIX and pskb_may_pull() reallocates skb->head,
> the check `if (ph->pn_res == PN_COMMGR)` dereferences the dangling ph
> pointer before the code re-acquires ph = pn_hdr(skb).
> 
> Check for PN_COMMGR before calling pskb_may_pull() to avoid accessing
> the potentially invalidated header pointer.
> 
> [...]

Here is the summary with links:
  - [net] phonet: fix use-after-free in can_respond()
    https://git.kernel.org/netdev/net/c/250b42eb17b7

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

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads