wifi: mt76: mt7996: fix out-of-bounds link array access in mt7996_tx()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.527.2.67.3In 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.
From the CVE record · Linux
The Linux kernel's mt7996 Wi-Fi transmit function can index past link arrays when mac80211 leaves a link unspecified before the first link has been added. The input does not establish whether an attacker can trigger this condition, or what access or interaction would be required.
Engineers running Linux kernels with the mt7996 Wi-Fi driver should check their kernel's status; affected versions are not specified.