]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mwifiex: Fix possible buffer overflows in mwifiex_cmd_append_vsie_tlv()
authorQing Xu <m1s5p6688@gmail.com>
Thu, 2 Jan 2020 02:39:27 +0000 (10:39 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 27 Jan 2020 14:34:34 +0000 (16:34 +0200)
commitb70261a288ea4d2f4ac7cd04be08a9f0f2de4f4d
tree4b890433ba96c95b071b24e02bbb45ae1f4974b7
parent3a9b153c5591548612c3955c9600a98150c81875
mwifiex: Fix possible buffer overflows in mwifiex_cmd_append_vsie_tlv()

mwifiex_cmd_append_vsie_tlv() calls memcpy() without checking
the destination size may trigger a buffer overflower,
which a local user could use to cause denial of service
or the execution of arbitrary code.
Fix it by putting the length check before calling memcpy().

Signed-off-by: Qing Xu <m1s5p6688@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/scan.c