ipv6: raw: fix use-after-free in rawv6_send_hdrinc()
NIST has received this entry but not started reviewing it.
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().
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 4c1feac58e06270321cc500b85c2d94a11495775, before cf0ac98b750292a2389cd21af7cf0e89c712ee09; from 4c1feac58e06270321cc500b85c2d94a11495775, before a31dee121f5ba1c3f521f7a929e0ad4a0d9a431d; from 4c1feac58e06270321cc500b85c2d94a11495775, before f38df644608ffd1253074f6d55103c1d8b2a197c; from 4c1feac58e06270321cc500b85c2d94a11495775, before 6cf361f77b4b329ad009daa63397a32bab95b1d0; from 4c1feac58e06270321cc500b85c2d94a11495775, before afb69c90cf62b630bf74c82d7bcfca840db8b076; from 4c1feac58e06270321cc500b85c2d94a11495775, before 3fda55b34d8f1621676f1238728c16033dff1148; and 2 more | cf0ac98b750292a2389cd21af7cf0e89c712ee09; a31dee121f5ba1c3f521f7a929e0ad4a0d9a431d; f38df644608ffd1253074f6d55103c1d8b2a197c; 6cf361f77b4b329ad009daa63397a32bab95b1d0 |
| Linux Linux | Software | 4.9 | not recorded |
The 7.0 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.0 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.