CVE-2026-98026: net: bridge: mcast: properly convert mglist to rcu
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: bridge: mcast: properly convert mglist to rcu
Sashiko reported a bug [1] that br_multicast_del_port_group unlists the port group not using proper rcu helper that preserves the next pointer and after that immediately frees the port group without waiting for rcu grace period. The only rcu walker of mglist is br_multicast_list_adjacent() and it turns out that function has always been buggy because mglist was never properly converted to RCU. Fix it by converting it to rcu and moving its initialization after eth_addr's. Initializing p->next can use RCU_INIT_POINTER because we have a barrier from the hlist_add_head_rcu call later, besides we're initializing an unpublished structure anyway.
[1] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260826014200.362304-1-littleddfu%40gmail.com
The Linux kernel CVE team has assigned CVE-2026-98026 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.16 with commit 07f8ac4a1e26e8283542cdaf658a6e2a12fd6980 and fixed in 6.12.111 with commit 98247c8264d2076f81fa114bdfa2c2271953ac7c Issue introduced in 3.16 with commit 07f8ac4a1e26e8283542cdaf658a6e2a12fd6980 and fixed in 6.18.53 with commit 38ab2a435001a3c4dbeb70a52f5921e1ccd66f55 Issue introduced in 3.16 with commit 07f8ac4a1e26e8283542cdaf658a6e2a12fd6980 and fixed in 7.2.7 with commit f7bf57e94a5d6214b87be08486cb33836fbfa573 Issue introduced in 3.16 with commit 07f8ac4a1e26e8283542cdaf658a6e2a12fd6980 and fixed in 7.3-rc3 with commit 4b772869a1e5f9da5cef5b9c722ec0aa424ee0a0
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98026
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/bridge/br_multicast.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/98247c8264d2076f81fa114bdfa2c2271953ac7c https://git.kernel.org/stable/c/38ab2a435001a3c4dbeb70a52f5921e1ccd66f55 https://git.kernel.org/stable/c/f7bf57e94a5d6214b87be08486cb33836fbfa573 https://git.kernel.org/stable/c/4b772869a1e5f9da5cef5b9c722ec0aa424ee0a0