wifi: mt76: mt7915: clear wcid mask under mutex after RCU pointer clear
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel b4a41a47a67c788e6b0625fa517ec8872e99bb6c, Kernel 6.2, Kernel 6.7 and 6 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=f3049b88b2b32326df97461813ae73e8bbc296fc <b4a41a47a67c788e6b0625fa517ec8872e99bb6c, >=6.1.191 <6.2, >=6.6.160 <6.7, >=f3049b88b2b32326df97461813ae73e8bbc296fc <5dce25f1d609ba991a9c22c27be586c92f03ed77, >=f3049b88b2b32326df97461813ae73e8bbc296fc <6486e11a6e2f679597af2d5bb48c3b07a2b2a7ba, >=f3049b88b2b32326df97461813ae73e8bbc296fc <a97b2b942d2f8f12fbd6a7caafc735d1ad115e6b, =6.12, =a582b1d54313dcdc96e7d8e1f49495dd71ddaf3e, =b7c8e22dfddacc1b08dbf44f5be2c66305d757bc | b4a41a47a67c788e6b0625fa517ec8872e99bb6c, 6.2, 6.7, 5dce25f1d609ba991a9c22c27be586c92f03ed77, 6486e11a6e2f679597af2d5bb48c3b07a2b2a7ba, a97b2b942d2f8f12fbd6a7caafc735d1ad115e6b |
| linux-kernel: Kernel | >=6.12.0 <6.12.110, >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.6.160 <6.7, >=6.1.191 <6.2 | 6.12.110, 6.18.52, 7.2.6, 6.7, 6.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket