CVE-2026-90372: wifi: mt76: mt7915: avoid nss underflow in mt7915_mcu_get_sta_nss
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: avoid nss underflow in mt7915_mcu_get_sta_nss
If a peer's VHT/HE MCS map has no supported spatial stream (all fields 0x3), the loop exits with nss == 0 and the function returned (u8)-1 (255), which was then written into the firmware sta_rec_bf beamforming fields. Clamp the result to 0.
The Linux kernel CVE team has assigned CVE-2026-90372 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.8 with commit 89029a85482cbcf68026a89fc974e8f6898d6b37 and fixed in 5.10.270 with commit 2801477c36a19be4f549fe60e54995f03b0ea7b9 Issue introduced in 5.8 with commit 89029a85482cbcf68026a89fc974e8f6898d6b37 and fixed in 5.15.221 with commit 38f4d6323bcd65e41a691432eddabd2b03acdeee Issue introduced in 5.8 with commit 89029a85482cbcf68026a89fc974e8f6898d6b37 and fixed in 6.1.188 with commit 25f753f7f620955a8a51e63e445d8b9076c51396 Issue introduced in 5.8 with commit 89029a85482cbcf68026a89fc974e8f6898d6b37 and fixed in 6.6.157 with commit e63c6291ecddf94769ab91f9d8cdb6ca939f7fc6 Issue introduced in 5.8 with commit 89029a85482cbcf68026a89fc974e8f6898d6b37 and fixed in 6.12.110 with commit 85bd46ab7674b6d357f9a14791352c65fb09eee9 Issue introduced in 5.8 with commit 89029a85482cbcf68026a89fc974e8f6898d6b37 and fixed in 6.18.52 with commit 6ce78d04c7ea4b66838941b5a4232dd1ee0e2cc7 Issue introduced in 5.8 with commit 89029a85482cbcf68026a89fc974e8f6898d6b37 and fixed in 7.2.6 with commit ecfd1a07e78c31d81322fb2d81dc468081cc3004 Issue introduced in 5.8 with commit 89029a85482cbcf68026a89fc974e8f6898d6b37 and fixed in 7.3-rc1 with commit 4a2f4be532e3ea4e2b536e411793a05aaa51af25
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-90372
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/mcu.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/2801477c36a19be4f549fe60e54995f03b0ea7b9 https://git.kernel.org/stable/c/38f4d6323bcd65e41a691432eddabd2b03acdeee https://git.kernel.org/stable/c/25f753f7f620955a8a51e63e445d8b9076c51396 https://git.kernel.org/stable/c/e63c6291ecddf94769ab91f9d8cdb6ca939f7fc6 https://git.kernel.org/stable/c/85bd46ab7674b6d357f9a14791352c65fb09eee9 https://git.kernel.org/stable/c/6ce78d04c7ea4b66838941b5a4232dd1ee0e2cc7 https://git.kernel.org/stable/c/ecfd1a07e78c31d81322fb2d81dc468081cc3004 https://git.kernel.org/stable/c/4a2f4be532e3ea4e2b536e411793a05aaa51af25