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:20:56 +0000 (08:20 +0200)
commitd982b0715812fa3a4527010a44018ad01b86986f
tree1ffd5c35c3de2c789db2b7840ac6b46133495b44
parent171ca9a7813df186e7c629f286a55c246a6ce9af
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