CVE-2026-90373: wifi: mt76: mt7915: clear wcid mask under mutex after RCU pointer clear
From: Greg Kroah-Hartman <[email protected]>
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.
The Linux kernel CVE team has assigned CVE-2026-90373 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit f3049b88b2b32326df97461813ae73e8bbc296fc and fixed in 6.12.110 with commit 5dce25f1d609ba991a9c22c27be586c92f03ed77 Issue introduced in 6.12 with commit f3049b88b2b32326df97461813ae73e8bbc296fc and fixed in 6.18.52 with commit b4a41a47a67c788e6b0625fa517ec8872e99bb6c Issue introduced in 6.12 with commit f3049b88b2b32326df97461813ae73e8bbc296fc and fixed in 7.2.6 with commit a97b2b942d2f8f12fbd6a7caafc735d1ad115e6b Issue introduced in 6.12 with commit f3049b88b2b32326df97461813ae73e8bbc296fc and fixed in 7.3-rc1 with commit 6486e11a6e2f679597af2d5bb48c3b07a2b2a7ba
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90373
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/wireless/mediatek/mt76/mt7915/main.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/5dce25f1d609ba991a9c22c27be586c92f03ed77 https://git.kernel.org/stable/c/b4a41a47a67c788e6b0625fa517ec8872e99bb6c https://git.kernel.org/stable/c/a97b2b942d2f8f12fbd6a7caafc735d1ad115e6b https://git.kernel.org/stable/c/6486e11a6e2f679597af2d5bb48c3b07a2b2a7ba