CVE-2026-99031: net: bridge: avoid recursive multicast port cleanup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: bridge: avoid recursive multicast port cleanup
br_multicast_sg_del_exclude_ports() removes automatically added STAR_EXCL port groups by calling br_multicast_del_pg(). For S,G entries, that deletion calls back into br_multicast_sg_del_exclude_ports(), so a large number of STAR_EXCL ports consumes one kernel stack frame per port and can hit the stack guard page.
Keep the complete port-group deletion path for cleanup, but suppress the S,G exclude-port cleanup while that helper is already walking the same entry. Normal deletion callers retain the existing behavior.
The Linux kernel CVE team has assigned CVE-2026-99031 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit 8266a0491e92d39dc9af739e8380a0daa9b8836b and fixed in 6.6.160 with commit 695a5a4c69c922d9296b2d7ad5f1ce8c6858fc64 Issue introduced in 5.10 with commit 8266a0491e92d39dc9af739e8380a0daa9b8836b and fixed in 6.12.113 with commit 2fb87c6025f90191516bee3ce14b42eb3e1cfed7 Issue introduced in 5.10 with commit 8266a0491e92d39dc9af739e8380a0daa9b8836b and fixed in 6.18.57 with commit d109141ba14652146089ef78b32d5e4d5285ebad Issue introduced in 5.10 with commit 8266a0491e92d39dc9af739e8380a0daa9b8836b and fixed in 7.2.11 with commit 7931fb9181421953f3133b408b0f2e2b8dd68b61 Issue introduced in 5.10 with commit 8266a0491e92d39dc9af739e8380a0daa9b8836b and fixed in 7.3 with commit 5158353121bae4f552cb677ce8c5c3ef52f93a0d
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-99031
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/695a5a4c69c922d9296b2d7ad5f1ce8c6858fc64 https://git.kernel.org/stable/c/2fb87c6025f90191516bee3ce14b42eb3e1cfed7 https://git.kernel.org/stable/c/d109141ba14652146089ef78b32d5e4d5285ebad https://git.kernel.org/stable/c/7931fb9181421953f3133b408b0f2e2b8dd68b61 https://git.kernel.org/stable/c/5158353121bae4f552cb677ce8c5c3ef52f93a0d