CVE-2026-90368: wifi: mt76: mt7915: unwind state on add_interface failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: unwind state on add_interface failure
When mt76_wcid_alloc() fails, mt7915_add_interface() returned without clearing the vif_mask/omac_mask bits it had already set, without removing the firmware dev info added earlier, and without clearing a monitor_vif pointer to the vif mac80211 is about to free. mac80211 does not call remove_interface() for a failed add, so the indices and firmware dev entry leaked permanently and testmode could dereference the stale monitor_vif. Add a proper error unwind.
The Linux kernel CVE team has assigned CVE-2026-90368 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit b619e01380eedf24e8d26a367e94e0ccaeb0c3dd and fixed in 6.12.110 with commit 218fdf0fcb796b8d281dbdd4a6144c5a8fc7fd0f Issue introduced in 5.19 with commit b619e01380eedf24e8d26a367e94e0ccaeb0c3dd and fixed in 6.18.52 with commit 507eddb8175a67df5086354b92d6a4fd7f6f1f96 Issue introduced in 5.19 with commit b619e01380eedf24e8d26a367e94e0ccaeb0c3dd and fixed in 7.2.6 with commit 71bf9de2ab3fb2c54bedb0b4c9b468d2e1d55280 Issue introduced in 5.19 with commit b619e01380eedf24e8d26a367e94e0ccaeb0c3dd and fixed in 7.3-rc1 with commit 2fb6480c52f611338e1b0abe5e6219be1fc9ab75
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-90368
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/main.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/218fdf0fcb796b8d281dbdd4a6144c5a8fc7fd0f https://git.kernel.org/stable/c/507eddb8175a67df5086354b92d6a4fd7f6f1f96 https://git.kernel.org/stable/c/71bf9de2ab3fb2c54bedb0b4c9b468d2e1d55280 https://git.kernel.org/stable/c/2fb6480c52f611338e1b0abe5e6219be1fc9ab75