wifi: rtw88: 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: rtw88: fix wrong pci_get_drvdata type in AER handlers
rtw88 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.
Use ieee80211_stop_queues/wake_queues instead, consistent with every other queue stop/start path in the driver.
From the CVE record · Linux
The Linux kernel's rtw88 driver treats an ieee80211_hw pointer as a net_device pointer in its PCI error recovery handlers, causing reads and writes at incorrect offsets. This can occur when those handlers run during PCI error recovery; the input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux systems that use the rtw88 driver should check their kernel versions against the vendor advisory; affected versions were not provided.