CVE-2026-90349: wifi: mt76: mt7996: fix out-of-bounds link array access in mt7996_tx()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7996: fix out-of-bounds link array access in mt7996_tx()
When mac80211 leaves the link unspecified, mt7996_tx() substitutes the primary link id of the station or vif. That value is IEEE80211_LINK_UNSPECIFIED (0xf) until the first link has been added, and it is then used unchecked to index vif->link_conf[], mvif->mt76.link[] and sta->link[], all of which hold IEEE80211_MLD_MAX_NUM_LINKS (15) entries.
Clamp the primary link id to the default link before using it, and use the clamped value for the link_sta fallback as well.
The Linux kernel CVE team has assigned CVE-2026-90349 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 1609b014aa29f9a2bf3aaa93f71de4a06725845e and fixed in 6.18.52 with commit 637bb99cc766a858d744905e46638459ca128b6c Issue introduced in 6.18 with commit 1609b014aa29f9a2bf3aaa93f71de4a06725845e and fixed in 7.2.6 with commit aff81505a84d27f83b4db8e039e813930cb23c2c Issue introduced in 6.18 with commit 1609b014aa29f9a2bf3aaa93f71de4a06725845e and fixed in 7.3-rc1 with commit 4330a0ef9f75a54fde3548432a9a698f06bab635
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-90349
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/mt7996/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/637bb99cc766a858d744905e46638459ca128b6c https://git.kernel.org/stable/c/aff81505a84d27f83b4db8e039e813930cb23c2c https://git.kernel.org/stable/c/4330a0ef9f75a54fde3548432a9a698f06bab635