wifi: mt76: mt7925: fix potential deadlock in mt7925_roc_abort_sync
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7925: fix potential deadlock in mt7925_roc_abort_sync
roc_abort_sync() can deadlock with roc_work(). roc_work() holds dev->mt76.mutex, while cancel_work_sync() waits for roc_work() to finish. If the caller already owns the same mutex, both sides block and no progress is possible.
This deadlock can occur during station removal when mt76_sta_state() -> mt76_sta_remove() -> mt7925_mac_sta_remove_link() -> mt7925_mac_link_sta_remove() -> mt7925_roc_abort_sync() invokes cancel_work_sync() while roc_work() is still running and holding dev->mt76.mutex.
This avoids the mutex deadlock and preserves exactly-once work ownership.
From the CVE record · Linux
The Linux kernel mt76 mt7925 Wi-Fi driver can deadlock during station removal if roc_work() holds a mutex while the removal path waits for it to finish. The input does not establish whether an attacker can trigger this or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the mt76 mt7925 Wi-Fi driver should check their versions; affected versions are not specified.