ipv6: raw: fix use-after-free in rawv6_send_hdrinc()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel afb69c90cf62b630bf74c82d7bcfca840db8b076, Kernel 18772182967f9a0160dc7ada43311eab87c3d9ec, Kernel 3fda55b34d8f1621676f1238728c16033dff1148 and 4 more.
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().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4c1feac58e06270321cc500b85c2d94a11495775 <afb69c90cf62b630bf74c82d7bcfca840db8b076, >=4c1feac58e06270321cc500b85c2d94a11495775 <18772182967f9a0160dc7ada43311eab87c3d9ec, >=4c1feac58e06270321cc500b85c2d94a11495775 <3fda55b34d8f1621676f1238728c16033dff1148, >=4c1feac58e06270321cc500b85c2d94a11495775 <66dfb2cacda7faae614d688943d85e75abf7f586, =4.9 | afb69c90cf62b630bf74c82d7bcfca840db8b076, 18772182967f9a0160dc7ada43311eab87c3d9ec, 3fda55b34d8f1621676f1238728c16033dff1148, 66dfb2cacda7faae614d688943d85e75abf7f586 |
| linux-kernel: Kernel | >=6.13.0 <6.18.64, >=6.19.0 <7.3.5, >=4.9.0 <6.12.118 | 6.18.64, 7.3.5, 6.12.118 |
Exploit evidence
2 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket