wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue for clc
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Mon, 19 Aug 2024 01:53:33 +0000 (09:53 +0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Sep 2024 12:23:08 +0000 (14:23 +0200)
commit9679ca7326e52282cc923c4d71d81c999cb6cd55
tree29fb476432c2e3ccc4138e5431edc31e2f323f13
parent5acdc432f832d810e0d638164c393b877291d9b4
wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue for clc

Due to the lack of checks on the clc array, if the firmware supports
more clc configuration, it will cause illegal memory access.

Cc: stable@vger.kernel.org
Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20240819015334.14580-1-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c