Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f3049b88b2b32326df97461813ae73e8bbc296fc to < 5dce25f1d609ba991a9c22c27be586c92f03ed77affectedf3049b88b2b32326df97461813ae73e8bbc296fc to < b4a41a47a67c788e6b0625fa517ec8872e99bb6caffectedf3049b88b2b32326df97461813ae73e8bbc296fc to < a97b2b942d2f8f12fbd6a7caafc735d1ad115e6baffectedf3049b88b2b32326df97461813ae73e8bbc296fc to < 6486e11a6e2f679597af2d5bb48c3b07a2b2a7baaffectedb7c8e22dfddacc1b08dbf44f5be2c66305d757bcaffecteda582b1d54313dcdc96e7d8e1f49495dd71ddaf3eaffected6.1.191 to < 6.2affected6.6.160 to < 6.7affected
Linux Linux
Default version status: affected
6.12affected0 to < 6.12unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected