CVE-2026-90356: wifi: mt76: mt7996: free vif links after clearing wcid entries on full reset
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7996: free vif links after clearing wcid entries on full reset
mt7996_mac_reset_vif_iter() queues non-default vif links for kfree_rcu while dev->wcid[] still holds pointers to the wcid embedded in each freed link; mt76_reset_device() then dereferences those entries and runs mt76_wcid_cleanup() on them. If a grace period elapses in between, the cleanup operates on freed memory.
Run mt76_reset_device() first, so the wcid entries are cleaned up and cleared while the links are still valid.
The Linux kernel CVE team has assigned CVE-2026-90356 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit ace5d3b6b49e8391beb4d7244348ba7da5298878 and fixed in 6.18.52 with commit 2b10eb3636d0c4cb6b763e045ec1294dbd70f5ad Issue introduced in 6.18 with commit ace5d3b6b49e8391beb4d7244348ba7da5298878 and fixed in 7.2.6 with commit 8826d7a5e2dd727aa96456ccd58b33d2b080e935 Issue introduced in 6.18 with commit ace5d3b6b49e8391beb4d7244348ba7da5298878 and fixed in 7.3-rc1 with commit 7e4208e9f6a876c2b7d28fdb6b86dff3b05db2f7
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-90356
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/mt7996/mac.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/2b10eb3636d0c4cb6b763e045ec1294dbd70f5ad https://git.kernel.org/stable/c/8826d7a5e2dd727aa96456ccd58b33d2b080e935 https://git.kernel.org/stable/c/7e4208e9f6a876c2b7d28fdb6b86dff3b05db2f7