]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: Fix possible oob access in mt76_connac2_mac_write_txwi_80211()
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 26 Feb 2026 19:11:16 +0000 (20:11 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Mar 2026 11:13:36 +0000 (12:13 +0100)
commit4e10a730d1b511ff49723371ed6d694dd1b2c785
treecc429f223a1a4fc3167478594b19537754138a8f
parentc41a9abd6ae31d130e8f332e7c8800c4c866234b
wifi: mt76: Fix possible oob access in mt76_connac2_mac_write_txwi_80211()

Check frame length before accessing the mgmt fields in
mt76_connac2_mac_write_txwi_80211 in order to avoid a possible oob
access.

Fixes: 577dbc6c656d ("mt76: mt7915: enable offloading of sequence number assignment")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260226-mt76-addba-req-oob-access-v1-3-b0f6d1ad4850@kernel.org
[fix check to also cover mgmt->u.action.u.addba_req.capab,
correct Fixes tag]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c