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:24:20 +0000 (08:24 +0200)
commit71b2a8756c076ee230695724b5154c11bc86cf1f
tree873677d35dd29c8c59d80dfb85e865107d897712
parent06293f7d7b7c1dcb2b744d0ac53571b6ff53010a
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