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:Lee Gibson <leegib@gmail.com> Signed-off-by:
Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210428115508.25624-1-leegib@gmail.com Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Xia Fukun <xiafukun@huawei.com>
Loading
Please sign in to comment