staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan()
authorDenis Efremov (Oracle) <efremov@linux.com>
Mon, 23 May 2022 17:39:43 +0000 (21:39 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 06:33:48 +0000 (08:33 +0200)
commitbdbc7ef3eb2c0052c59500fa3f9d9386091206f1
tree38d09a19b934e9e4811b111dd59d005734d0f7f9
parent4f0750839421c64e3e3ab152cfd443f282682bc4
staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan()

This code has a check to prevent read overflow but it needs another
check to prevent writing beyond the end of the ->Ssid[] array.

Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Denis Efremov (Oracle) <efremov@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c