CVE-2026-98102: ipv6: mcast: fix RCU list diversion in ip6_mc_del1_src()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipv6: mcast: fix RCU list diversion in ip6_mc_del1_src()
When removing a source filter whose count reaches zero, ip6_mc_del1_src() unlinks psf from pmc->mca_sources. If the filter was previously active, the code moved psf directly into pmc->mca_tomb by updating psf->sf_next.
Because pmc->mca_sources is traversed locklessly under RCU (e.g. by ipv6_chk_mcast_addr()), mutating psf->sf_next before a grace period elapses diverts concurrent readers to the tombstone list. Consequently, readers miss remaining active sources in pmc->mca_sources and improperly examine deleted tombstone entries.
Fix this by allocating a new tombstone node for pmc->mca_tomb (as done in sf_setstate()) and retiring the original psf via kfree_rcu().
The Linux kernel CVE team has assigned CVE-2026-98102 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.13 with commit 4b200e398953c237c86d32bf26d4cb2a96556a6f and fixed in 6.12.111 with commit 4352737297b262e8367675c19a7dc6a9f53c97af Issue introduced in 5.13 with commit 4b200e398953c237c86d32bf26d4cb2a96556a6f and fixed in 6.18.53 with commit 8d4fe5c13f5056faa6deb09a90e24a89f9ebfad4 Issue introduced in 5.13 with commit 4b200e398953c237c86d32bf26d4cb2a96556a6f and fixed in 7.2.7 with commit 5149c60c406595b56fda0c6e9aae7fd287f636aa Issue introduced in 5.13 with commit 4b200e398953c237c86d32bf26d4cb2a96556a6f and fixed in 7.3-rc2 with commit 93b49239840b91313adbd77b8b52993eff2d08c1 Issue introduced in 5.10.261 with commit 86c49119f0353f857cc08030ec9e4ebaab3d5a64
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-98102
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/ipv6/mcast.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/4352737297b262e8367675c19a7dc6a9f53c97af https://git.kernel.org/stable/c/8d4fe5c13f5056faa6deb09a90e24a89f9ebfad4 https://git.kernel.org/stable/c/5149c60c406595b56fda0c6e9aae7fd287f636aa https://git.kernel.org/stable/c/93b49239840b91313adbd77b8b52993eff2d08c1