wifi: mt76: mt7615: avoid waiting for mac work under the mt76 mutex
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c6bf20109a3fae92402cb76ad709ec5256bcd169 · < 44be85af3e1772ffb3332feafedad2a73b22854c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7615: avoid waiting for mac work under the mt76 mutex
mt7615_suspend() acquired the mt76 mutex and then called cancel_delayed_work_sync() on mac_work. mt7615_mac_work() acquires the same mutex via mt7615_mutex_acquire() at the top of the worker, so if mac_work is already running and blocked on the mutex, the suspend path deadlocks waiting for the work it holds the mutex against.
Flush scan_work and mac_work before taking the mutex, matching the suspend paths in mt7921 and mt7925. scan_work only takes the mt76 spinlock, but moving it keeps the sequence consistent. This also keeps mac_work from running over an already suspended HIF, which the previous split (async cancel under the lock, sync cancel after release) would have allowed.
From the CVE record · Linux
The mt7615 suspend path can deadlock when mac_work is already running and waiting for the mutex held by the suspend path. The input describes no attacker action, access requirement, or user interaction that triggers this condition.
Engineers running Linux kernels with the mt76 mt7615 Wi-Fi driver should check their kernel versions; affected versions were not provided.