AZL-118460: CVE-2026-143272 affecting package kernel 6.6.161.1-1
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.
- Compensating control
In Linux kernel ip6mr, serialize multicast router socket ownership under RTNL: look up the selected table in ip6mr_sk_init() after acquiring RTNL, and in MRT6_TABLE re-read the current table and check its owner under RTNL before updating the selection.
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
The issue requires concurrent IPv6 multicast-routing socket operations that change the selected multicast-routing table and initialize multicast routing (TABLE and INIT). This can cause the same socket to be registered in more than one table; after the socket is closed and freed, a later multicast cache report can dereference the stale socket pointer.
Is the issue limited to a particular multicast-routing table configuration?
The description does not identify a particular table number or configuration. The vulnerable condition is a race between table selection and initialization that breaks the expectation that a socket owns only one multicast-routing table.
How can an administrator determine whether a system may be affected?
Systems using the listed Azure Linux kernel package version may be affected if IPv6 multicast routing is used. A KASAN-enabled affected kernel may report a slab use-after-free in sk_filter_trim_cap() when the stale pointer is used.