Skip to contentSkip to conversation

CVE-2026-90353: wifi: mt76: mt7915: fix ext PHY use-after-free on register error path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-90353 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.19 with commit 7b8e1ae886e45aed9274048f2836a70b75ecfa40 and fixed in 6.1.188 with commit aa55bec92ba7747dd08feff409f8074c5e052e71
	Issue introduced in 5.19 with commit 7b8e1ae886e45aed9274048f2836a70b75ecfa40 and fixed in 6.6.157 with commit ad706fcf6255494613b94418e7243d98065dbeaf
	Issue introduced in 5.19 with commit 7b8e1ae886e45aed9274048f2836a70b75ecfa40 and fixed in 6.12.110 with commit 34058ad122f7524e33df8e38caba4b1d803b025a
	Issue introduced in 5.19 with commit 7b8e1ae886e45aed9274048f2836a70b75ecfa40 and fixed in 6.18.52 with commit a7fd3bae8e11a7c00df6a5021d9ef248ae9f9bf5
	Issue introduced in 5.19 with commit 7b8e1ae886e45aed9274048f2836a70b75ecfa40 and fixed in 7.2.6 with commit 648f5f03ff50d4bd719106ace0cdf1d8be02cbdd
	Issue introduced in 5.19 with commit 7b8e1ae886e45aed9274048f2836a70b75ecfa40 and fixed in 7.3-rc1 with commit 15b960014f24dce5388d4a2e7274e6490cb3c421

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90353

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/net/wireless/mediatek/mt76/mt7915/init.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/aa55bec92ba7747dd08feff409f8074c5e052e71
	https://git.kernel.org/stable/c/ad706fcf6255494613b94418e7243d98065dbeaf
	https://git.kernel.org/stable/c/34058ad122f7524e33df8e38caba4b1d803b025a
	https://git.kernel.org/stable/c/a7fd3bae8e11a7c00df6a5021d9ef248ae9f9bf5
	https://git.kernel.org/stable/c/648f5f03ff50d4bd719106ace0cdf1d8be02cbdd
	https://git.kernel.org/stable/c/15b960014f24dce5388d4a2e7274e6490cb3c421