CVE-2026-99320: ipv6: raw: fix use-after-free in rawv6_send_hdrinc()
In the Linux kernel, the following vulnerability has been resolved:
ipv6: raw: fix use-after-free in rawv6sendhdrinc()
rawv6sendhdrinc() caches the route before handing the skb to l3mdevip6out(). 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 NFHOOK(). Its RCU read-side critical section starts after l3mdevip6out(), so it cannot prevent the old route from being reclaimed in between.
Reload the route from the current skb destination after l3mdevip6out() returns.
KASAN reports a slab-use-after-free in rawv6sendmsg(), with the route allocated by ip6dstalloc(), freed by dstdestroy() from rcucore(), and the related RCU callback queued from vrfl3out().