Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 1609b014aa29f9a2bf3aaa93f71de4a06725845e before 637bb99cc766a858d744905e46638459ca128b6c; affected 1609b014aa29f9a2bf3aaa93f71de4a06725845e before aff81505a84d27f83b4db8e039e813930cb23c2c; affected 1609b014aa29f9a2bf3aaa93f71de4a06725845e before 4330a0ef9f75a54fde3548432a9a698f06bab635 |
| Linux / Linux | affected 6.18; unaffected 0 before 6.18; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.