wifi: mt76: mt7921: drop TXRX_NOTIFY on non-mmio buses
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 48fab5bbef4092d925ab3214773ad12e68807223 · < da4082e91acabc1498611ed8ccc53f0610baefc6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7921: drop TXRX_NOTIFY on non-mmio buses
PKT_TYPE_TXRX_NOTIFY is an mmio-only event, but mt7921_rx_check() and mt7921_queue_rx_skb() dispatch it to mt7921_mac_tx_free() on every bus. mt7921_mac_tx_free() cleans the DMA tx queues with mt76_queue_tx_cleanup(), which calls queue_ops->tx_cleanup(). Only the mmio queue ops implement that callback; on USB and SDIO it is NULL, so a TXRX_NOTIFY there calls a NULL pointer in the RX worker:
BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:0x0 Call Trace: mt7921_mac_tx_free+0x64/0x310 [mt7921_common] mt7921_rx_check+0x5f/0xf0 [mt7921_common] mt76u_rx_worker+0x1b9/0x620 [mt76_usb]
Drop the event on non-mmio buses via mt76_is_mmio(), as in commit 5683e1488aa9 ("wifi: mt76: connac: do not check WED status for non-mmio devices").
From the CVE record · Linux
The Linux kernel’s mt7921 Wi-Fi driver processes a TXRX_NOTIFY event on USB and SDIO buses even though the event is intended only for MMIO buses. This can trigger a NULL pointer dereference in the receive worker and crash the kernel. The input does not establish how an attacker could trigger the event or whether authentication or user interaction is required.
Engineers running Linux kernels with the mt7921 Wi-Fi driver on USB or SDIO devices should check their kernel’s status; affected versions are not specified.