wifi: rtw89: fix wrong pci_get_drvdata type in AER handlers
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: fix wrong pci_get_drvdata type in AER handlers
rtw89 stores an ieee80211_hw pointer via pci_set_drvdata() at probe time, but io_error_detected() and io_resume() retrieve it as a net_device pointer. This causes netif_device_detach/attach to operate on an ieee80211_hw struct, reading and writing at wrong offsets. The adjacent io_slot_reset() already does it correctly.
Use ieee80211_stop_queues/wake_queues instead, consistent with every other queue stop/start path in the driver.
Tested on RTL8852CE by calling the handlers from a test module before and after the fix.
From the CVE record · Linux
The rtw89 Wi-Fi driver treats an ieee80211_hw pointer as a net_device pointer in its PCI error-detection and resume handlers, causing reads and writes at incorrect offsets. This occurs when those handlers run; the input does not establish how an attacker could trigger them or whether authentication or user interaction is required.
Engineers running Linux kernels with the rtw89 Wi-Fi driver should check whether their kernel includes the fix; affected versions were not specified.