Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143272

ip6mr: Serialize multicast router socket ownership

Description

In the Linux kernel, the following vulnerability has been resolved: ip6mr: Serialize multicast router socket ownership MRT6_TABLE checks whether the socket owns its current table before acquiring RTNL. MRT6_INIT 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. rawv6_close() calls ip6mr_sk_done(), which clears only the first table owned by the socket. After the socket's RCU-delayed free, the other table retains a dangling mroute_sk pointer. A subsequent multicast cache report passes that pointer to sock_queue_rcv_skb_reason(). This produces a KASAN slab-use-after-free in sk_filter_trim_cap(). Look up the selected table in ip6mr_sk_init() after acquiring RTNL. Likewise, re-read the current table and check its owner under RTNL in MRT6_TABLE before updating the selection. This preserves the single-table ownership invariant shared with ip6mr_sk_done(), without changing the locking of the other multicast socket options.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • d1db275dd3f6e4182c4c4b4a1ac6287925d60569 to < 3ebf0303d121825f2cff9d050b6e4f8a6b85214daffected
  • d1db275dd3f6e4182c4c4b4a1ac6287925d60569 to < 0978e904f7e1470f793a6d095a5413a47b31a7dfaffected
  • d1db275dd3f6e4182c4c4b4a1ac6287925d60569 to < f9ca379fec83686acc41e97ee714c99544abbc16affected
  • d1db275dd3f6e4182c4c4b4a1ac6287925d60569 to < c6b41de4dd9f2d6856d8d8d292348f7961034152affected

Linux Linux

Default version status: affected

  • 2.6.35affected
  • 0 to < 2.6.35unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc2 to ≤ *unaffected

References