wifi: rtw88: fix the 'para' buffer size to avoid reading out of bounds
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4136214f7c46839c15f0f177fe1d5052302c0205 · < 4c2c372de2e108319236203cce6de44d70ae15cd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: fix the 'para' buffer size to avoid reading out of bounds
Set the size to 6 instead of 2, since 'para' array is passed to 'rtw_fw_bt_wifi_control(rtwdev, para[0], ¶[1])', which reads 5 bytes:
void rtw_fw_bt_wifi_control(struct rtw_dev *rtwdev, u8 op_code, u8 *data) { ... SET_BT_WIFI_CONTROL_DATA1(h2c_pkt, *data); SET_BT_WIFI_CONTROL_DATA2(h2c_pkt, *(data + 1)); ... SET_BT_WIFI_CONTROL_DATA5(h2c_pkt, *(data + 4));
Detected using the static analysis tool - Svace.
From the CVE record · Linux
The Linux kernel's rtw88 Wi-Fi driver allocates a two-byte `para` buffer but passes it to a function that reads five bytes from it. This can cause an out-of-bounds read; the input does not establish whether an attacker can trigger it or what access or interaction would be required.
Engineers running Linux kernels with the rtw88 Wi-Fi driver should check their versions; affected versions were not provided.