| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-43842: wifi: rtw89: Fix array index mistake in rtw89_sta_info_get_iter() |
| |
| Description |
| =========== |
| |
| 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. |
| |
| The Linux kernel CVE team has assigned CVE-2024-43842 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.16 with commit e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd and fixed in 6.1.103 with commit a2a095c08b95372d6d0c5819b77f071af5e75366 |
| Issue introduced in 5.16 with commit e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd and fixed in 6.6.44 with commit 7a0edc3d83aff3a48813d78c9cad9daf38decc74 |
| Issue introduced in 5.16 with commit e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd and fixed in 6.10.3 with commit 96ae4de5bc4c8ba39fd072369398f59495b73f58 |
| Issue introduced in 5.16 with commit e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd and fixed in 6.11 with commit 85099c7ce4f9e64c66aa397cd9a37473637ab891 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2024-43842 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/net/wireless/realtek/rtw89/debug.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/a2a095c08b95372d6d0c5819b77f071af5e75366 |
| https://git.kernel.org/stable/c/7a0edc3d83aff3a48813d78c9cad9daf38decc74 |
| https://git.kernel.org/stable/c/96ae4de5bc4c8ba39fd072369398f59495b73f58 |
| https://git.kernel.org/stable/c/85099c7ce4f9e64c66aa397cd9a37473637ab891 |