wifi: rtw88: fix OOB read from firmware RX descriptor exceeding DMA buffer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e3037485c68ec1a299ff41160d8fedbd4abc29b9 · < 01155ded5d4dad61840a9a3c33ab56778ef1f100| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: fix OOB read from firmware RX descriptor exceeding DMA buffer
In rtw_pci_rx_napi(), new_len is computed as the sum of pkt_len (14-bit descriptor field, max 16383) and pkt_offset (drv_info_sz + shift, both firmware-controlled). The result can exceed RTK_PCI_RX_BUF_SIZE (11478), causing an out-of-bounds read from the pre-allocated DMA buffer when skb_put_data copies new_len bytes. The USB transport already validates this (rtw_usb_rx_data_put checks against RTW_USB_MAX_RECVBUF_SZ); the PCIe path does not.
Add a check that new_len does not exceed the DMA buffer size.
From the CVE record · Linux
The Linux kernel’s rtw88 PCIe receive path can read past its DMA buffer when a firmware-controlled RX descriptor specifies a length exceeding the buffer size. The input does not establish whether an attacker can trigger this over a network or locally, whether authentication is needed, or whether user interaction is required.
Anyone running a Linux kernel with the rtw88 PCIe driver should check whether their kernel includes the fix; affected versions are not specified.