Commit 8a3eb05
committed
wifi: rtw89: Fix array index mistake in rtw89_sta_info_get_iter()
jira VULN-44676
jira VULN-44675
cve CVE-2024-43842
commit-author Aleksandr Mishin <amishin@t-argos.ru>
commit 85099c7
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.
Fixes: e3ec701 ("rtw89: add Realtek 802.11ax driver")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240703210510.11089-1-amishin@t-argos.ru
(cherry picked from commit 85099c7)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 0ea5a8d commit 8a3eb05
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3247 | 3247 | | |
3248 | 3248 | | |
3249 | 3249 | | |
3250 | | - | |
| 3250 | + | |
3251 | 3251 | | |
3252 | 3252 | | |
3253 | 3253 | | |
| |||
0 commit comments