linux/drivers/staging/rtl8192e
Lee Gibson 8687bf9ef9 staging: rtl8192e: Fix possible buffer overflow in _rtl92e_wx_set_scan
Function _rtl92e_wx_set_scan calls memcpy without checking the length.
A user could control that length and trigger a buffer overflow.
Fix by checking the length is within the maximum allowed size.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Gibson <leegib@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210226145157.424065-1-leegib@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-10 09:23:28 +01:00
..
rtl8192e staging: rtl8192e: Fix possible buffer overflow in _rtl92e_wx_set_scan 2021-03-10 09:23:28 +01:00
dot11d.c staging: rtl8192e: remove boilerplate license text 2019-03-18 07:06:03 +01:00
dot11d.h Staging: rtl8192e: Replace license text with SPDX identifier 2019-02-21 10:58:11 +01:00
Kconfig staging: rtl8192e: fix kconfig dependency on CRYPTO 2021-03-10 09:23:28 +01:00
Makefile
rtl819x_BA.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl819x_BAProc.c staging: rtl8192e: style fix - Prefer using '"%s...", __func__' 2020-02-09 16:22:58 -08:00
rtl819x_HT.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl819x_HTProc.c staging: rtl8192e: Braces should be used on all arms of statement 2020-11-13 15:34:07 +01:00
rtl819x_Qos.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl819x_TS.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl819x_TSProc.c staging: rtl8192e: style fix - Prefer using '"%s...", __func__' 2020-02-09 16:22:58 -08:00
rtllib_crypt_ccmp.c staging: rtl8192e: add proper code indent 2020-07-21 16:52:47 +02:00
rtllib_crypt_tkip.c mm: remove kzfree() compatibility definition 2020-10-25 11:39:02 -07:00
rtllib_crypt_wep.c mm: remove kzfree() compatibility definition 2020-10-25 11:39:02 -07:00
rtllib_debug.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtllib_module.c staging: rtl8192e: rtllib_module: Remove redundant memset 2019-06-20 14:39:15 +02:00
rtllib_rx.c staging: rtl8192e: fix bool comparison in expressions 2020-12-28 15:12:25 +01:00
rtllib_softmac_wx.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtllib_softmac.c staging: rtl8192e: remove braces from single-line block 2021-02-08 15:24:57 +01:00
rtllib_tx.c staging: rtl8192e: fix bool comparison in expressions 2020-12-28 15:12:25 +01:00
rtllib_wx.c staging: rtl8192e: remove multiple blank lines 2021-02-13 22:37:49 +01:00
rtllib.h staging: Replace zero-length array with flexible-array member 2020-02-23 19:18:54 +01:00
TODO