commit | d3d8b9c9c7843dce31e284927d4c9904fd5a510a | [log] [tgz] |
---|---|---|
author | Lee Gibson <leegib@gmail.com> | Wed Apr 28 12:55:08 2021 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jul 20 16:21:07 2021 +0200 |
tree | 32c5c9a131554cede982ddbff7813394bb47ff4d | |
parent | 38c4e023074c5dbc2dfb1708d401c1f8cbd0a849 [diff] |
wl1251: Fix possible buffer overflow in wl1251_cmd_scan [ Upstream commit d10a87a3535cce2b890897914f5d0d83df669c63 ] 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>