wifi: mt76: mt7996: use hweight16 to get correct tx antenna
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7996: use hweight16 to get correct tx antenna
The chainmask is u16 so using hweight8 cannot get correct tx_ant. Without this patch, the tx_ant of band 2 would be -1 and lead to the following issue: BUG: KASAN: stack-out-of-bounds in mt7996_mcu_add_sta+0x12e0/0x16e0 [mt7996e]
From the CVE record · Linux
The Linux kernel’s mt7996 Wi-Fi driver can calculate the wrong transmit antenna for band 2, leading to a KASAN stack-out-of-bounds report in mt7996_mcu_add_sta. The input does not establish how an attacker could trigger the issue or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the mt7996 Wi-Fi driver should check their systems; affected versions are not specified.