KernelScan.io

HIGH Introduced in 5.8

mt76 StaNss Underflow

CVE-2026-90372

CVSS 7.1 / 10.0 NVD

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

KernelScan AI5.4MEDIUM

01

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.

02

Engine v0.6.0

Risk summary

A WiFi peer within radio range of a device using the MediaTek MT7915 chipset can advertise a crafted MCS map with no supported spatial streams, causing an integer underflow that writes an invalid value (255) into firmware beamforming configuration. This could lead to firmware malfunction or degraded WiFi performance. No authentication or privileges are required — any station capable of sending WiFi frames to the affected device can trigger it.

Affecteddrivers/net/wireless/mediatek/mt76/mt7915/mcu.c (mt76 mt7915 WiFi driver)

Vulnerability analysis

When a WiFi peer advertises a VHT or HE MCS map indicating no supported spatial streams (all fields set to the unsupported value), the driver's spatial-stream detection loop exits without finding any valid entry, leaving the stream counter at zero. The function then subtracts one from this zero value, which wraps to 255 when stored as an unsigned byte, and this bogus value is passed into firmware beamforming configuration fields. The fix checks for the zero case and clamps the result to zero instead of allowing the underflow. The vulnerable code path is reached whenever the MT7915 driver processes a peer station's capability information, so any WiFi device within radio range that can send management or association frames to the affected host can trigger it — no authentication, local access, or special privileges are needed, though the specific MediaTek MT7915 hardware and driver must be present.

03

BranchIntroducedFixed inPatch commit
5.155.85.15.22138f4d6323bcd
6.15.86.1.18825f753f7f620
6.185.86.18.526ce78d04c7ea
mainline5.87.3-rc14a2f4be532e3
5.105.85.10.2702801477c36a1
6.125.86.12.11085bd46ab7674
6.65.86.6.157e63c6291ecdd
7.25.87.2.6ecfd1a07e78c
cip/6.125.86.12.111-cip3285bd46ab7674