]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:56:24 +0000 (18:56 +0200)
commitccb839602a820e24209c200ce985b6c937f4cfa5
treeeb54d112b4b34f68ff6263b97a7e7ecfa65ecb56
parent61b80fbdc0726317f72f9074e10126e0eb0e49c5
wifi: cw1200: cap SSID length in cw1200_do_join()

[ Upstream commit f8f15f6742b8874e59c9c715d0af3474608310ad ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/st/cw1200/sta.c