CVE-2026-139498: wifi: mt76: mt7925: fix lock inversion between dev->mutex and iflist_mtx
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7925: fix lock inversion between dev->mutex and iflistmtx
mt7925config() has the same inversion as mt7921config(): it holds dev->mutex across ieee80211iterateactiveinterfaces(), which takes local->iflistmtx, while mac80211 calls drvunassignvifchanctx() with iflistmtx already held.
.config is only reached through drvconfig(), which asserts the wiphy mutex, so use ieee80211iterateactiveinterfacesmtx() here too.
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.12.119 - 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 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In mt7925_config(), use ieee80211_iterate_active_interfaces_mtx() instead of ieee80211_iterate_active_interfaces() to avoid the lock inversion.
Event History
Frequently Asked Questions
What condition is required for this issue to occur?
The affected mt7925 configuration path must run while interface iteration and channel-context unassignment create opposing lock acquisition orders involving dev->mutex and the mac80211 interface-list mutex. The issue is a lock inversion that can lead to a deadlock.
Which systems are exposed?
Systems using the Linux kernel mt76 mt7925 Wi-Fi driver are relevant. The provided information does not identify affected kernel versions or specific hardware products beyond mt7925.
What is the remediation?
Apply a kernel update containing the fix that changes mt7925_config() to use ieee80211_iterate_active_interfaces_mtx(). This avoids taking the interface-list mutex through the incompatible lock path.