Skip to content
Commit 7b2644e9 authored by Lee Gibson's avatar Lee Gibson Committed by Xia Fukun
Browse files

wl1251: Fix possible buffer overflow in wl1251_cmd_scan

stable inclusion
from stable-v4.19.314
commit 115103f6e3f1c26c473766c16439c7c8b235529a
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9R4BX
CVE: CVE-2021-47347

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=115103f6e3f1c26c473766c



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

[ Upstream commit d10a87a3 ]

Function wl1251_cmd_scan calls memcpy without checking the length.
Harden by checking the length is within the maximum allowed size.

Signed-off-by: default avatarLee Gibson <leegib@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210428115508.25624-1-leegib@gmail.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarXia Fukun <xiafukun@huawei.com>
parent 5f7c9fb3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment