CVE-2026-143272: ip6mr: Serialize multicast router socket ownership
In the Linux kernel, the following vulnerability has been resolved:
ip6mr: Serialize multicast router socket ownership
MRT6TABLE checks whether the socket owns its current table before acquiring RTNL. MRT6INIT also looks up its table before taking RTNL. Consequently, concurrent TABLE and INIT calls can initialize the old table and then change the socket's selected table. Another INIT can register the same socket in the new table.
rawv6close() calls ip6mrskdone(), which clears only the first table owned by the socket. After the socket's RCU-delayed free, the other table retains a dangling mroutesk pointer. A subsequent multicast cache report passes that pointer to sockqueuercvskbreason(). This produces a KASAN slab-use-after-free in skfiltertrimcap().
Look up the selected table in ip6mrskinit() after acquiring RTNL. Likewise, re-read the current table and check its owner under RTNL in MRT6TABLE before updating the selection. This preserves the single-table ownership invariant shared with ip6mrskdone(), without changing the locking of the other multicast socket options.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
The issue requires concurrent MRT6_TABLE and MRT6_INIT operations on a multicast router socket. This can cause one socket to be registered as the owner of more than one multicast routing table before it is closed.
Who is realistically exposed to this issue?
Systems using Linux IPv6 multicast routing are exposed when software can perform the affected multicast router socket operations concurrently. The provided information does not establish remote exploitability or identify any required privileges.
How might an affected system manifest the problem?
After the socket is closed and freed following its RCU delay, a multicast cache report can dereference a stale mroute_sk pointer. KASAN may report a slab use-after-free in sk_filter_trim_cap().
What does the fix change?
The fix performs multicast routing table lookup and ownership checks while holding RTNL, preventing a socket from becoming associated with multiple tables. This preserves the single-table ownership assumption used when the socket is cleaned up.