staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan()
stable inclusion from stable-v5.10.119 commit c06e5f751a08a05d8e7e14f77a3d1ba783641b26 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6BB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c06e5f751a08a05d8e7e14f77a3d1ba783641b26 -------------------------------- 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: 554c0a3a ("staging: Add rtl8723bs sdio wifi driver") Cc: stable <stable@vger.kernel.org> Signed-off-by: NDenis Efremov (Oracle) <efremov@linux.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录