wifi: mt76: mt7915: avoid nss underflow in mt7915_mcu_get_sta_nss
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 89029a85482cbcf68026a89fc974e8f6898d6b37 · < 6ce78d04c7ea4b66838941b5a4232dd1ee0e2cc7| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's mt76 mt7915 Wi-Fi driver can underflow a spatial-stream count when a peer's VHT/HE MCS map indicates no supported spatial streams. This writes an incorrect value of 255 to firmware station beamforming fields. The input does not specify whether authentication or user interaction is required.
Engineers running Linux kernels with the mt76 mt7915 Wi-Fi driver should check whether their kernel includes the fix; affected versions are not specified.