HIGH Introduced in 5.3
ip6mr CacheReport UAF
CVE-2026-90111
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI8.1HIGH
01Description
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().
02KernelScan AI Analysis
Risk summary
A remote attacker can trigger a use-after-free in the Linux kernel's IPv6 multicast routing subsystem by sending specially timed multicast packets to a device with IPv6 multicast routing enabled. Successful exploitation could lead to kernel memory corruption, potentially allowing arbitrary code execution or a system crash. The attack requires no privileges from the sender but depends on a race condition involving route deletion and multicast forwarding cache resolution.
Vulnerability analysis
IPv6 multicast routing keeps a queue of unresolved multicast forwarding cache entries, each holding a packet that arrived before a matching route was configured. The receive path attaches a destination route to these packets without taking a reference, relying on RCU to keep it valid. When a packet is moved to the unresolved queue, it outlives the RCU grace period; if the route is later deleted and freed, the queued packet still points to the stale destination. When the forwarding cache is eventually resolved on a different interface, the multicast routing code clones that stale destination for a report message, accessing freed memory. The fix drops the destination reference before a packet is queued as unresolved and stops cloning it when building report messages, since report packets delivered to multicast routing sockets and netlink do not need a destination. The vulnerability is reachable by sending IPv6 multicast packets to a device that has IPv6 multicast routing enabled, which requires administrator configuration but no privileges from the sender.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 5.3 | 6.1.191 | b50d3cfb8513 |
| 6.12 | 5.3 | 6.12.114 | 42ef371466d5 |
| 6.18 | 5.3 | 6.18.57 | f57b0fd1c62e |
| 6.6 | 5.3 | 6.6.160 | 7f8287f606c8 |
| 7.2 | 5.3 | 7.2.6 | 4a674afaae41 |
| mainline | 5.3 | 7.3 | 235b42b58601 |
| cip/6.12 | 5.3 | 6.12.114-cip34 | 42ef371466d5 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |