wifi: mt76: mt7915: fix ext PHY use-after-free on register error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7b8e1ae886e45aed9274048f2836a70b75ecfa40 · < 15b960014f24dce5388d4a2e7274e6490cb3c421| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: fix ext PHY use-after-free on register error path
After mt7915_register_ext_phy() succeeded, a failure of the main PHY mt7915_init_debugfs() or mt7915_coredump_register() unwound through free_phy2, which called ieee80211_free_hw() on the ext PHY hw while it was still registered with mac80211, since mt76_unregister_device() only unregisters the main hw. Unregister the ext PHY (thermal + phy + hw) first and skip the redundant free.
From the CVE record · Linux
The Linux kernel’s mt76 mt7915 driver can free a registered external PHY if main PHY debugfs initialization or coredump registration fails. This creates a use-after-free; the input does not specify an attacker action, access requirement, or user interaction needed to trigger it.
Engineers running Linux kernels with the mt76 mt7915 driver should check their kernel version; affected versions are not specified.