Re: [PATCH net v1] udp: fix potential use-after-free in tunnel segmentation
From: patchwork-bot+netdevbpf
Date: Mon Aug 03 2026 - 21:41:26 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 30 Jul 2026 17:35:54 +0800 you wrote:
> From: Xuanqiang Luo <luoxuanqiang@xxxxxxxxxx>
>
> __skb_udp_tunnel_segment() gets the UDP header before ensuring the
> tunnel header is in the skb head. If the pull reallocates skb->head,
> the saved UDP header pointer is no longer valid.
>
> Get the UDP header after the pull to avoid a potential use-after-free.
>
> [...]
Here is the summary with links:
- [net,v1] udp: fix potential use-after-free in tunnel segmentation
https://git.kernel.org/netdev/net/c/d0f86fb36eb2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html