Re: [PATCH net v2] ipv6: raw: fix use-after-free in rawv6_send_hdrinc()

From: patchwork-bot+netdevbpf

Date: Fri Oct 30 2026 - 05:43:01 EST


Hello:

This patch was applied to netdev/net.git (main)
by Dave Miller <davem@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>:

On Mon, 26 Oct 2026 12:48:08 +0800 you wrote:
> rawv6_send_hdrinc() caches the route before handing the skb to
> l3mdev_ip6_out(). The VRF output path may replace skb->dst and release
> the original route, leaving the cached pointer stale.
>
> The function later dereferences that pointer for statistics accounting
> and as the output device passed to NF_HOOK(). Its RCU read-side critical
> section starts after l3mdev_ip6_out(), so it cannot prevent the old route
> from being reclaimed in between.
>
> [...]

Here is the summary with links:
- [net,v2] ipv6: raw: fix use-after-free in rawv6_send_hdrinc()
https://git.kernel.org/netdev/net/c/66dfb2cacda7

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