← VULNERABILITIES

CVE-2026-99320

ipv6: raw: fix use-after-free in rawv6_send_hdrinc()

High · 7.0Fix available
CVSS
7
EPSS
0.22% (p13)
Published
2026-11-19
Age
15d old
Modified
2026-11-23
Product
Linux Linux

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

In the Linux kernel, the following vulnerability has been resolved: ipv6: raw: fix use-after-free in rawv6_send_hdrinc() 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. Reload 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().

Fixed in

18772182967f9a0160dc7ada43311eab87c3d9ec · 3fda55b34d8f1621676f1238728c16033dff1148 · 6.12.118 · 6.18.64 · 66dfb2cacda7faae614d688943d85e75abf7f586 · 6cf361f77b4b329ad009daa63397a32bab95b1d0 · 7.3.5 · a31dee121f5ba1c3f521f7a929e0ad4a0d9a431d · afb69c90cf62b630bf74c82d7bcfca840db8b076 · cf0ac98b750292a2389cd21af7cf0e89c712ee09 · f38df644608ffd1253074f6d55103c1d8b2a197c

Affected packages

EcosystemPackageRangeFixed
LinuxKernel>=4.9.0, <6.12.1186.12.118
LinuxKernel>=6.13.0, <6.18.646.18.64
LinuxKernel>=6.19.0, <7.3.57.3.5
vendorLinux>=4c1feac58e06270321cc500b85c2d94a11495775, <18772182967f9a0160dc7ada43311eab87c3d9ec18772182967f9a0160dc7ada43311eab87c3d9ec
vendorLinux>=4c1feac58e06270321cc500b85c2d94a11495775, <3fda55b34d8f1621676f1238728c16033dff11483fda55b34d8f1621676f1238728c16033dff1148
vendorLinux>=4c1feac58e06270321cc500b85c2d94a11495775, <66dfb2cacda7faae614d688943d85e75abf7f58666dfb2cacda7faae614d688943d85e75abf7f586
vendorLinux>=4c1feac58e06270321cc500b85c2d94a11495775, <6cf361f77b4b329ad009daa63397a32bab95b1d06cf361f77b4b329ad009daa63397a32bab95b1d0
vendorLinux>=4c1feac58e06270321cc500b85c2d94a11495775, <a31dee121f5ba1c3f521f7a929e0ad4a0d9a431da31dee121f5ba1c3f521f7a929e0ad4a0d9a431d
vendorLinux>=4c1feac58e06270321cc500b85c2d94a11495775, <afb69c90cf62b630bf74c82d7bcfca840db8b076afb69c90cf62b630bf74c82d7bcfca840db8b076
vendorLinux>=4c1feac58e06270321cc500b85c2d94a11495775, <cf0ac98b750292a2389cd21af7cf0e89c712ee09cf0ac98b750292a2389cd21af7cf0e89c712ee09
vendorLinux>=4c1feac58e06270321cc500b85c2d94a11495775, <f38df644608ffd1253074f6d55103c1d8b2a197cf38df644608ffd1253074f6d55103c1d8b2a197c

Sources

  • NVD · first seen 15d ago · NVD terms of use
  • OSV · first seen 15d ago · CC-BY 4.0
  • CVE List · first seen 15d ago · CVE Terms of Use

References

JSON