summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/ftdi_sio.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-05-31 15:18:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-21 09:07:10 +0200
commit3a611df229a90247c9a5159d136c60f4008c29a2 (patch)
tree174aa4e6eaaf04bbe829360e9b5963f1aa622ec6 /drivers/usb/serial/ftdi_sio.c
parentf80d2b57a9527389cf312814d716d040c3c7abd9 (diff)
mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies()
commit 69ae4f6aac1578575126319d3f55550e7e440449 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
0 files changed, 0 insertions, 0 deletions