Skip to contentSkip to conversation

CVE-2026-98301: net: bridge: mst: move switchdev call outside rcu

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net: bridge: mst: move switchdev call outside rcu

This is a follow-up of one of sashiko's pre-existing bug reports. br_mst_set_state() calls switchdev_port_attr_set() for nonzero MSTIs while holding rcu_read_lock() which invokes the blocking switchdev notifier chain and may sleep. Nonzero MSTI changes come from netlink with rtnl held. Move the switchdev call before entering the rcu section and assert that rtnl is held.

The call cannot be deferred because netlink needs its error and extack. Also DSA reads the old bridge MST state during the callback and checks it. A deferred callback will be late and will see the updated state.

The Linux kernel CVE team has assigned CVE-2026-98301 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.1.93 with commit 8ca9a750fc711911ef616ceb627d07357b04545e and fixed in 6.1.189 with commit b9661fd2423fc25e91e0517ecc0b6156ad83e3a8
	Issue introduced in 6.6.33 with commit 4488617e5e995a09abe4d81add5fb165674edb59 and fixed in 6.6.158 with commit 6b431b63219853eef4054e2f1cb073d2ca2059b4
	Issue introduced in 6.10 with commit 3a7c1661ae1383364cd6092d851f5e5da64d476b and fixed in 6.12.112 with commit abf734d150c61acfdfee102169d0e5d1c482e285
	Issue introduced in 6.10 with commit 3a7c1661ae1383364cd6092d851f5e5da64d476b and fixed in 6.18.54 with commit d5c4ee1fa4e83a12afc051c831936cd8e006cde3
	Issue introduced in 6.10 with commit 3a7c1661ae1383364cd6092d851f5e5da64d476b and fixed in 7.2.8 with commit c40ed3e884c8dc0350f26484030438ef24208ff1
	Issue introduced in 6.10 with commit 3a7c1661ae1383364cd6092d851f5e5da64d476b and fixed in 7.3-rc4 with commit 18a6fe05fb6e18de29fa90d388bb34044114b3d8
	Issue introduced in 6.8.12 with commit a2b01e65d9ba8af2bb086d3b7288ca53a07249ac
	Issue introduced in 6.9.3 with commit e43dd2b1ec746e105b7db5f9ad6ef14685a615a4

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-98301

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_mst.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/b9661fd2423fc25e91e0517ecc0b6156ad83e3a8
	https://git.kernel.org/stable/c/6b431b63219853eef4054e2f1cb073d2ca2059b4
	https://git.kernel.org/stable/c/abf734d150c61acfdfee102169d0e5d1c482e285
	https://git.kernel.org/stable/c/d5c4ee1fa4e83a12afc051c831936cd8e006cde3
	https://git.kernel.org/stable/c/c40ed3e884c8dc0350f26484030438ef24208ff1
	https://git.kernel.org/stable/c/18a6fe05fb6e18de29fa90d388bb34044114b3d8