wifi: cw1200: cap SSID length in cw1200_do_join()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 29 Aug 2025 12:48:28 +0000 (15:48 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Sep 2025 07:37:51 +0000 (09:37 +0200)
commitf8f15f6742b8874e59c9c715d0af3474608310ad
treea2b5ae4226619699405c9731bbbe8f6c263dfd49
parent629840e208bfe10008da3e8366493f3d71b21251
wifi: cw1200: cap SSID length in cw1200_do_join()

If the ssidie[1] length is more that 32 it leads to memory corruption.

Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/e91fb43fcedc4893b604dfb973131661510901a7.1756456951.git.dan.carpenter@linaro.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/st/cw1200/sta.c