wifi: rtw89: add bounds check on firmware mac_id in link lookup
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 |
|
|
6.18.407.1.57.2In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw89: add bounds check on firmware mac_id in link lookup
The mac_id field in RX descriptors is 8 bits wide (0-255), but assoc_link_on_macid[] has only RTW89_MAX_MAC_ID_NUM (128) entries. While the driver currently assigns mac_id values below 128, the descriptor value comes from firmware and is not validated before use as an array index. Add a defensive bounds check in rtw89_assoc_link_rcu_dereference() to guard against out-of-range firmware values.
From the CVE record · Linux
The Linux kernel's rtw89 Wi-Fi driver uses a firmware-provided mac_id as an index into a 128-entry array without checking whether it is in range. An out-of-range value can cause an out-of-bounds array access. The input does not establish whether an attacker can trigger this or specify network, authentication, or user-interaction conditions.
Engineers running Linux kernels with the rtw89 Wi-Fi driver should check their kernel versions; affected versions were not specified.