]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mt76: mt7925: fix off by one in mt7925_mcu_hw_scan()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 27 May 2025 05:55:38 +0000 (08:55 +0300)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Jul 2025 17:26:53 +0000 (19:26 +0200)
commitb3a431fe2e399b2e0cc5f43f7e9d63d63d3710ee
tree6569ae8b2e37ba9a9df9714d02d228aa58e14467
parentac9c50c79eaef5fca0f165e45d0c5880606db53e
wifi: mt76: mt7925: fix off by one in mt7925_mcu_hw_scan()

The ssid->ssids[] and sreq->ssids[] arrays have MT7925_RNR_SCAN_MAX_BSSIDS
elements so this >= needs to be > to prevent an out of bounds access.

Fixes: 8284815ca161 ("wifi: mt76: mt7925: add RNR scan support for 6GHz")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aDVT2tPhG_8T0Qla@stanley.mountain
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c