Linux
ip6mr: do not clone dst in ip6mr_cache_report()
In the Linux kernel, the following vulnerability has been resolved: ip6mr: do not clone dst in ip6mr_cache_report() IPv6 input attaches a non-refcounted (NOREF) dst to skbs under RCU. When an ingress multicast packet misses MFC lookup, ip6mr_cache_unresolved() places the skb onto the unresolved queue, escaping the receive-side RCU grace period. If the underlying route is deleted and freed, and the MFC queue is later resolved with a wrong parent interface, ip6_mr_forward() invokes ip6mr_cache_report(..., MRT6MSG_WRONGMIF), which executes dst_clone(skb_dst(pkt)) on the freed dst entry, triggering a slab use-after-free. Report packets queued to mroute6_sk (a raw socket) and netlink notifications do not require an attached dst entry. Fix this by: 1. Removing dst_clone() in ip6mr_cache_report() and ensuring report skbs do not hold a dst. 2. Dropping skb_dst before queuing unresolved skbs in ip6mr_cache_unresolved(), matching the fact that multicast forwarding resolves outgoing routes anew via ip6_route_output().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 67f415dd29063a5906c560051c00e42dcf01a4dd, < b50d3cfb8513e895cee453dd0f834deee6ccc231
- >= 67f415dd29063a5906c560051c00e42dcf01a4dd, < 7f8287f606c8c028d4224e85d95dc448c6d6d623
- >= 67f415dd29063a5906c560051c00e42dcf01a4dd, < 42ef371466d5648f5c9e8bc219f0af0a2c2bbf8c
- >= 67f415dd29063a5906c560051c00e42dcf01a4dd, < f57b0fd1c62e1be274ee154ab7fb8ac4481b7f89
- >= 67f415dd29063a5906c560051c00e42dcf01a4dd, < 4a674afaae4136c71943aa3e35d433676fd40e8f
- >= 67f415dd29063a5906c560051c00e42dcf01a4dd, < 235b42b5860189eb8c27c36435ad932cae65a734
Fixed in b50d3cfb8513e895cee453dd0f834deee6ccc231, 7f8287f606c8c028d4224e85d95dc448c6d6d623, 42ef371466d5648f5c9e8bc219f0af0a2c2bbf8c, f57b0fd1c62e1be274ee154ab7fb8ac4481b7f89, 4a674afaae4136c71943aa3e35d433676fd40e8f, 235b42b5860189eb8c27c36435ad932cae65a734
- 5.3
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.2.6, 7.3
Mitigation
Upgrade Linux to b50d3cfb8513e895cee453dd0f834deee6ccc231 or 7f8287f606c8c028d4224e85d95dc448c6d6d623 or 42ef371466d5648f5c9e8bc219f0af0a2c2bbf8c or f57b0fd1c62e1be274ee154ab7fb8ac4481b7f89 or 4a674afaae4136c71943aa3e35d433676fd40e8f or 235b42b5860189eb8c27c36435ad932cae65a734 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.