CVE-2026-143441: wifi: mt76: mt7915: publish wcid before MCU add commands
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: publish wcid before MCU add commands
mt7915addinterface() enables the BSS/STA in firmware via mt7915mcuaddbssinfo() and mt7915mcuaddsta() before publishing dev->mt76.wcid[idx] with rcuassignpointer(). Firmware can start generating tx-status/tx-free events referencing that wcid as soon as it processes those MCU commands, but mt76's rx/tx-free handlers (e.g. mt7915mactxfree()) look up dev->mt76.wcid[idx] to service them, and won't find it published yet. This can lead to memory corruption and kernel crashes shortly after an AP interface is brought up.
This ordering was introduced by commit 8e3e7567b8c1 ("mt76: mt7915: add starec with EXTRAINFONEW for the first time only"): mt7915mcuaddsta() derived its "newly added" flag from !rcuaccesspointer(dev->mt76.wcid[idx]), so the publish had to happen after that call. Commit 33eb14f10290 ("wifi: mt76: mt7915: use mac80211 .stastate op") later replaced that flag with a caller-supplied newly argument to mt7915mcuaddsta(), now simply hardcoded to true, so the ordering is no longer required.
Move the rcuassignpointer() before the MCU addbssinfo/addsta calls, so that the wcid is visible to lookups before firmware is told it's live. This makes the ordering symmetric with mt7915removeinterface(), which keeps the pointer published until after the MCU disable commands have been issued.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mt7915_add_interface(), publish dev->mt76.wcid[idx] with rcu_assign_pointer() before calling mt7915_mcu_add_bss_info() and mt7915_mcu_add_sta().
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel mt76 mt7915 Wi-Fi driver are exposed when an AP interface is brought up. The race occurs while the driver enables BSS and station state in firmware.
Does exploitation require a remote attacker to send specially crafted traffic?
No attacker-controlled input is described. Firmware can generate transmit-status or transmit-free events immediately after processing the MCU commands, before the WCID entry is visible to the driver's event handlers.
What symptoms indicate that a system may be affected?
The issue can cause memory corruption and kernel crashes shortly after an AP interface is brought up. The failure involves tx-status or tx-free event handling for a WCID that has not yet been published.