Linux
wifi: mt76: mt7915: fix ext PHY use-after-free on register error path
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7b8e1ae886e45aed9274048f2836a70b75ecfa40, < aa55bec92ba7747dd08feff409f8074c5e052e71
- >= 7b8e1ae886e45aed9274048f2836a70b75ecfa40, < ad706fcf6255494613b94418e7243d98065dbeaf
- >= 7b8e1ae886e45aed9274048f2836a70b75ecfa40, < 34058ad122f7524e33df8e38caba4b1d803b025a
- >= 7b8e1ae886e45aed9274048f2836a70b75ecfa40, < a7fd3bae8e11a7c00df6a5021d9ef248ae9f9bf5
- >= 7b8e1ae886e45aed9274048f2836a70b75ecfa40, < 648f5f03ff50d4bd719106ace0cdf1d8be02cbdd
- >= 7b8e1ae886e45aed9274048f2836a70b75ecfa40, < 15b960014f24dce5388d4a2e7274e6490cb3c421
Fixed in aa55bec92ba7747dd08feff409f8074c5e052e71, ad706fcf6255494613b94418e7243d98065dbeaf, 34058ad122f7524e33df8e38caba4b1d803b025a, a7fd3bae8e11a7c00df6a5021d9ef248ae9f9bf5, 648f5f03ff50d4bd719106ace0cdf1d8be02cbdd, 15b960014f24dce5388d4a2e7274e6490cb3c421
- 5.19
Fixed in 0, 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to aa55bec92ba7747dd08feff409f8074c5e052e71 or ad706fcf6255494613b94418e7243d98065dbeaf or 34058ad122f7524e33df8e38caba4b1d803b025a or a7fd3bae8e11a7c00df6a5021d9ef248ae9f9bf5 or 648f5f03ff50d4bd719106ace0cdf1d8be02cbdd or 15b960014f24dce5388d4a2e7274e6490cb3c421 or later.
Upgrade Linux to 0 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.