Linux kernel denial of service in mt7925 Wi-Fi reset
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7925: fix reset panic caused by the WM2 rx irq mask
mt7925_irq_map sets wm2_complete_mask, but mt7925_dma_layout has no tx done ring, so the MT_RXQ_MCU_WA queue and its NAPI are never set up. On a chip reset, mt7925e_mac_reset() calls napi_disable() on that NAPI and crashes:
BUG: kernel NULL pointer dereference, address: 0000000000000a40 Workqueue: mt76 mt7925_mac_reset_work [mt7925_common] RIP: 0010:mutex_lock+0x1c/0x50 Call Trace: napi_disable+0x1d/0x50 mt7925e_mac_reset+0x327/0x420 [mt7925e] mt7925_mac_reset_work+0x9a/0x1a0 [mt7925_common]
Remove the WM2 mask from mt7925_irq_map and from MT7925_INT_RX_DONE_ALL.
From the CVE record · Linux
The Linux kernel’s mt7925 Wi-Fi driver can dereference a null pointer during a chip reset because it attempts to disable a NAPI instance that was never set up. This causes a kernel crash; the input does not establish whether an attacker can trigger it or specify access or user-interaction requirements.
Operators running Linux systems with the mt7925 Wi-Fi driver should check their kernel; affected versions are not specified.