diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-05-31 16:18:41 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-06-01 08:06:24 +0300 |
commit | 69ae4f6aac1578575126319d3f55550e7e440449 (patch) | |
tree | eb6c70372232d2632785ecc467ddd5718b6cb109 /block | |
parent | 5f4d55d5791a8b7150dbaba239e92719ae0f94d4 (diff) | |
download | linux-69ae4f6aac1578575126319d3f55550e7e440449.tar.xz |
mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies()
A few places in mwifiex_uap_parse_tail_ies() perform memcpy()
unconditionally, which may lead to either buffer overflow or read over
boundary.
This patch addresses the issues by checking the read size and the
destination size at each place more properly. Along with the fixes,
the patch cleans up the code slightly by introducing a temporary
variable for the token size, and unifies the error path with the
standard goto statement.
Reported-by: huangwen <huangwen@venustech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions