Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98301 Overview
CVE-2026-98301 is a Linux kernel vulnerability in the network bridge Multiple Spanning Tree (MST) implementation. The br_mst_set_state() function invokes switchdev_port_attr_set() for nonzero MSTIs while holding rcu_read_lock(). The switchdev call triggers the blocking switchdev notifier chain, which may sleep. Sleeping inside an RCU read-side critical section violates kernel locking rules and can lead to scheduling faults or system instability. The fix moves the switchdev call outside the RCU section and asserts that the RTNL lock is held during execution.
Critical Impact
Sleeping within an RCU read-side critical section can trigger kernel warnings, scheduling issues, or crashes on systems using bridge MST with switchdev-capable network drivers.
Affected Products
- Linux Kernel - bridge subsystem (net/bridge/br_mst.c)
- Systems using Multiple Spanning Tree Protocol (MSTP) on Linux bridges
- Distributed Switch Architecture (DSA) deployments relying on switchdev MST state callbacks
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-98301 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98301
Vulnerability Analysis
The Linux bridge driver implements Multiple Spanning Tree Instances (MSTIs) to support per-VLAN spanning tree topologies. When a nonzero MSTI state change arrives through netlink, br_mst_set_state() propagates the new port state to hardware offload drivers through switchdev_port_attr_set(). The original code performed this notification inside an rcu_read_lock() section.
The switchdev notifier chain is a blocking notifier chain. Callees may acquire mutexes, allocate memory with GFP_KERNEL, or otherwise sleep. RCU read-side critical sections, in contrast, must be atomic and non-preemptible on classic RCU configurations. Invoking a blocking call from within RCU violates this contract and can produce BUG: sleeping function called from invalid context warnings or scheduler misbehavior.
Root Cause
The root cause is a locking contract violation: a potentially sleeping function was invoked inside an RCU read-side critical section. The call cannot be deferred to a workqueue because netlink requires synchronous error codes and extack messages. In addition, DSA drivers read the previous bridge MST state inside the callback, so a deferred invocation would observe already-updated state and produce incorrect behavior.
Attack Vector
Triggering the condition requires the ability to issue netlink requests that modify bridge MST state on a bridge port backed by a switchdev driver. On affected systems this generally requires CAP_NET_ADMIN. The issue is a correctness and stability bug rather than a direct remote code execution vector, and no proof-of-concept exploit is listed in the published references.
The fix reorders operations so the switchdev call executes before the RCU section begins. An ASSERT_RTNL() is added to confirm the caller holds the RTNL lock, which netlink paths already guarantee.
Detection Methods for CVE-2026-98301
Indicators of Compromise
- Kernel log entries containing BUG: sleeping function called from invalid context originating from br_mst_set_state or the bridge module
- Lockdep splats referencing rcu_read_lock held during switchdev_port_attr_set
- Soft lockup or scheduling warnings on systems configured with bridge MST and switchdev-enabled NIC drivers
Detection Strategies
- Compare running kernel versions against the fixed commits referenced in the kernel.org change log (18a6fe05fb6e, 6b431b632198, abf734d150c6, b9661fd2423f, c40ed3e884c8, d5c4ee1fa4e8)
- Audit systems that enable MSTP on Linux bridges with the net.bridge.mst_enabled configuration or equivalent iproute2 commands
- Review DSA and switchdev driver load events on networking appliances and SmartNIC platforms
Monitoring Recommendations
- Forward dmesg and /var/log/kern.log to a central log store and alert on bridge-related BUG or WARN messages
- Monitor netlink activity that sets per-MSTI port state on production bridges
- Track kernel package versions across fleets to confirm patch rollout coverage
How to Mitigate CVE-2026-98301
Immediate Actions Required
- Identify Linux hosts running bridge MST with switchdev-capable drivers, including DSA-based networking equipment
- Apply the upstream stable kernel update that moves the switchdev_port_attr_set() call outside the RCU section
- Restart affected systems after kernel package upgrade to load the patched image
Patch Information
The fix has been merged across multiple stable branches. Reference commits are available on git.kernel.org: commit 18a6fe05fb6e, commit 6b431b632198, commit abf734d150c6, commit b9661fd2423f, commit c40ed3e884c8, and commit d5c4ee1fa4e8. Install the corresponding kernel package from your distribution vendor.
Workarounds
- Disable Multiple Spanning Tree on affected bridges until the patched kernel can be deployed
- Restrict CAP_NET_ADMIN to trusted administrators to limit who can issue netlink MST state changes
- Where feasible, use software-only bridging without switchdev offload until the fix is in place
# Verify running kernel version and bridge MST configuration
uname -r
ip -details link show type bridge | grep -i mst
# Disable MST on a bridge as a temporary workaround
ip link set dev br0 type bridge mst_enabled 0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

