wifi: mt76: do not run mt76_unregister_device() on unregistered hw
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.1.1136.2.96.3In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: do not run mt76_unregister_device() on unregistered hw
Trying to probe a mt7921e pci card without firmware results in a successful probe where ieee80211_register_hw hasn't been called. When removing the driver, ieee802111_unregister_hw is called unconditionally leading to a kernel NULL pointer dereference. Fix the issue running mt76_unregister_device routine just for registered hw.
From the CVE record · Linux
The mt76 driver can encounter a NULL pointer dereference when a mt7921e PCI card is probed without firmware and the driver is subsequently removed. The issue occurs during local driver removal; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the mt76 driver and mt7921e PCI cards should check their exposure; affected versions were not provided.