Skip to contentSkip to conversation

CVE-2026-90350: wifi: mt76: reject out-of-range link ids in mt76_vif_link()

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: reject out-of-range link ids in mt76_vif_link()

mt76_vif_link() indexes mvif->link[] without validating link_id, but callers pass mvif->deflink_id / msta->deflink_id, which hold IEEE80211_LINK_UNSPECIFIED (0xf) until the first link has been added. Since IEEE80211_MLD_MAX_NUM_LINKS is 15, that reads one element past the end of the array, aliasing mt76_vif_data.offchannel_link.

Reachable via mt7996_set_tsf()/mt7996_offset_tsf() and mt7996_net_fill_forward_path(). Bounds check link_id and return NULL, matching mt7996_sta_link() and mt7996_sta_link_protected().

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

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

	Issue introduced in 6.15 with commit a9384b36a42afc2d715eb74c19a7ee558f09ef82 and fixed in 6.18.52 with commit 13f6a9c786022d5213e84d494cc8717c378f5395
	Issue introduced in 6.15 with commit a9384b36a42afc2d715eb74c19a7ee558f09ef82 and fixed in 7.2.6 with commit c1442c345ca8da857fadea1d0797b97347ab6984
	Issue introduced in 6.15 with commit a9384b36a42afc2d715eb74c19a7ee558f09ef82 and fixed in 7.3-rc1 with commit 9ba744a28c26eaa5cae930688a22e01888395308

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-90350

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/mt76.h

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/13f6a9c786022d5213e84d494cc8717c378f5395
	https://git.kernel.org/stable/c/c1442c345ca8da857fadea1d0797b97347ab6984
	https://git.kernel.org/stable/c/9ba744a28c26eaa5cae930688a22e01888395308