]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 5 Mar 2021 08:58:03 +0000 (11:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 15:34:33 +0000 (16:34 +0100)
commit33cdc63f0e07abf637ba326b6016731be958088d
tree50e80c7fe25dc542b35d55af41c9b90fc19a3495
parent6f7815d623c117ee44d109c52f7679bbc1daeb15
staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()

commit 74b6b20df8cfe90ada777d621b54c32e69e27cd7 upstream.

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: a2c60d42d97c ("staging: r8188eu: Add files for new driver - part 16")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/YEHymwsnHewzoam7@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c