CVE-2026-139497: wifi: mt76: fix wcid teardown ordering in mt76_reset_device()
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: fix wcid teardown ordering in mt76resetdevice()
mt76resetdevice() tears down each wcid's pktid idr before clearing dev->wcid[i], which is the reverse of the ordering used on the sta removal path. Until the pointer is cleared, a concurrent lookup under statuslock can still find the wcid and access its already destroyed idr.
Clear dev->wcid[i] before calling mt76wcidcleanup(), reproducing the ordering mac80211 already enforces for normal sta removal (where mt76staprercuremove() clears dev->wcid[idx] before mt76wcidcleanup() runs via the .stastate callback).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.17 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
In mt76_reset_device(), clear dev->wcid[i] before calling mt76_wcid_cleanup() to prevent concurrent lookups from finding a wcid whose pktid idr has already been destroyed.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel mt76 Wi-Fi driver are exposed when the affected device-reset path can run. The issue concerns teardown of wireless client identifiers during mt76_reset_device().
What condition is required to trigger the vulnerability?
A device reset must overlap with a concurrent lookup performed under status_lock. The lookup can find a WCID entry that has not yet been cleared and access its packet-ID IDR after that IDR has already been destroyed.
Are systems using normal station removal affected in the same way?
The description identifies the reset path as using incorrect ordering. Normal station removal already clears the dev->wcid entry before mt76_wcid_cleanup() runs, preventing the stale lookup condition described.
What is the relevant mitigation if an update cannot be applied immediately?
No workaround is provided. Risk reduction would require avoiding or limiting conditions that cause mt76 device resets, but the supplied information does not identify a specific safe configuration change.