Commit a0c471ba authored by Dan Carpenter's avatar Dan Carpenter Committed by Zheng Zengkai
Browse files

staging: rtl8192u: fix ->ssid overflow in r8192_wx_set_scan()



stable inclusion
from stable-5.10.24
commit 1642b5153ba54636ef1718a346ea2fa68cdd2d75
bugzilla: 51348

--------------------------------

commit 87107518 upstream.

We need to cap len at IW_ESSID_MAX_SIZE (32) to avoid memory corruption.
This can be controlled by the user via the ioctl.

Fixes: 5f53d8ca ("Staging: add rtl8192SU wireless usb driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/YEHoAWMOSZBUw91F@mwanda


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 09136d73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment