Linux kernel ipv6 raw: use-after-free in rawv6_send_hdrinc()
CVE-2026-99320 is a Linux kernel use-after-free in the IPv6 raw socket send path. rawv6_send_hdrinc() caches a route before l3mdev_ip6_out(); the VRF output path can replace skb- dst and free the original route, leaving a stale pointer that is later dereferenced. KASAN reports a slab-use-after-free in rawv6_sendmsg().
Details
In the Linux kernel, 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.
The fix reloads the route from the current skb destination after l3mdev_ip6_out() returns.
KASAN reports a slab-use-after-free in rawv6_sendmsg(), with the route allocated by ip6_dst_alloc(), freed by dst_destroy() from rcu_core(), and the related RCU callback queued from vrf_l3_out().
Affected area
- Linux kernel IPv6 raw socket send path - VRF output path interaction - Stack: Linux host
Sources
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99320 - Fix commits: - https://git.kernel.org/stable/c/18772182967f9a0160dc7ada43311eab87c3d9ec - https://git.kernel.org/stable/c/3fda55b34d8f1621676f1238728c16033dff1148 - https://git.kernel.org/stable/c/66dfb2cacda7faae614d688943d85e75abf7f586 - https://git.kernel.org/stable/c/afb69c90cf62b630bf74c82d7bcfca840db8b076
No fixed version numbers are provided in the evidence. Verify the vendor advisory for the exact kernel release containing the backport before changing production systems.
What to do
1. Review the NVD entry and the linked kernel stable commits to confirm whether your kernel version is affected. 2. Identify your Linux distribution and kernel version, then check whether a security update includes one of the listed fix commits. 3. Apply the vendor kernel security update or backport. If no fixed version is listed, verify the vendor advisory before patching production. 4. Reboot into the patched kernel and confirm the new kernel is active. 5. Monitor for KASAN reports or crashes in rawv6_sendmsg() / rawv6_send_hdrinc(). If immediate patching is not possible, review whether raw IPv6 socket usage with VRF can be restricted, but verify any mitigation with the vendor advisory.