ipv6: mcast: fix RCU list diversion in ip6_mc_del1_src()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
86c49119f0353f857cc08030ec9e4ebaab3d5a64| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel’s IPv6 multicast code can divert lockless readers to a tombstone list when an active source filter is removed as its count reaches zero. During concurrent traversal, readers may miss active sources and examine deleted entries. The input does not establish an attacker access requirement or exploit path.
Engineers running Linux kernels should check their versions for the IPv6 multicast fix; affected versions are not specified.