wifi: mt76: mt7915: clear wcid mask under mutex after RCU pointer clear
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: mt7915: clear wcid mask under mutex after RCU pointer clear
mt7915_remove_interface() cleared the wcid mask bit with no lock held and before clearing the RCU wcid pointer. The mask is a non-atomic RMW shared with the allocators, which all run under dev->mt76.mutex; on DBDC the two wiphys share one mt76_dev, so this raced add_interface/sta_add on the other band and could leak or double-hand-out a wcid. Clearing the bit before the RCU pointer also let a concurrent allocation reuse the index and publish its wcid, which the subsequent NULL assignment then wiped. Move the clear into the existing mutex section, after the RCU pointer is cleared.
From the CVE record · Linux
The mt7915 Wi-Fi driver clears a shared WCID mask bit without holding the mutex and before clearing the corresponding RCU pointer. On DBDC devices, concurrent interface or station additions on the other band can cause a WCID to be leaked or assigned twice, or wipe a newly published WCID pointer. The input does not establish an attacker access requirement or user-interaction condition.
Engineers running Linux kernels with the mt7915 Wi-Fi driver on DBDC devices should check their kernel; affected versions were not provided.