wifi: rtw89: Fix array index mistake in rtw89_sta_info_get_iter()
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: rtw89: Fix array index mistake in rtw89_sta_info_get_iter()
In rtw89_sta_info_get_iter() 'status->he_gi' is compared to array size. But then 'rate->he_gi' is used as array index instead of 'status->he_gi'. This can lead to go beyond array boundaries in case of 'rate->he_gi' is not equal to 'status->he_gi' and is bigger than array size. Looks like "copy-paste" mistake.
Fix this mistake by replacing 'rate->he_gi' with 'status->he_gi'.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
The rtw89 Wi-Fi driver checks one value against an array size but uses a different value as the index. This can cause an out-of-bounds array access when the values differ and the index exceeds the array size. The input does not establish whether an attacker can trigger this condition or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the rtw89 Wi-Fi driver should check their installations; affected versions are not specified.