Linux: net: bridge: avoid recursive multicast port cleanup
What fixes it
- 695a5a4c69c922d9296b2d7ad5f1ce8c6858fc64LinuxCVE List
- 2fb87c6025f90191516bee3ce14b42eb3e1cfed7LinuxCVE List
- 7931fb9181421953f3133b408b0f2e2b8dd68b61LinuxCVE List
- 5158353121bae4f552cb677ce8c5c3ef52f93a0dLinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 12
- Linuxaffected: 8266a0491e92d39dc9af739e8380a0daa9b8836b before 695a5a4c69c922d9296b2d7ad5f1ce8c6858fc64CVE List
- Linuxaffected: 8266a0491e92d39dc9af739e8380a0daa9b8836b before 2fb87c6025f90191516bee3ce14b42eb3e1cfed7CVE List
- Linuxaffected: 8266a0491e92d39dc9af739e8380a0daa9b8836b before d109141ba14652146089ef78b32d5e4d5285ebadCVE List
- Linuxaffected: 8266a0491e92d39dc9af739e8380a0daa9b8836b before 7931fb9181421953f3133b408b0f2e2b8dd68b61CVE List
- Linuxaffected: 8266a0491e92d39dc9af739e8380a0daa9b8836b before 5158353121bae4f552cb677ce8c5c3ef52f93a0dCVE List
- Linuxaffected: 5.10CVE List
- Linuxunaffected: all versions before 5.10CVE List
- Linuxunaffected: 6.6.160 through 6.6.*CVE List
- Linuxunaffected: 6.12.113 through 6.12.*CVE List
- Linuxunaffected: 6.18.57 through 6.18.*CVE List
- Linuxunaffected: 7.2.11 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/695a5a4c69c922d9296b2d7ad5f1ce8c6858fc64Referencevia CVE List
- git.kernel.org/stable/c/2fb87c6025f90191516bee3ce14b42eb3e1cfed7Referencevia CVE List
- git.kernel.org/stable/c/d109141ba14652146089ef78b32d5e4d5285ebadReferencevia CVE List
- git.kernel.org/stable/c/7931fb9181421953f3133b408b0f2e2b8dd68b61Referencevia CVE List
- git.kernel.org/stable/c/5158353121bae4f552cb677ce8c5c3ef52f93a0dReferencevia CVE List