linux-brain/drivers/staging/rtl8188eu/core
Dan Carpenter ab42f28d5f staging: rtl8188eu: fix potential memory corruption in rtw_check_beacon_data()
commit d4ac640322b06095128a5c45ba4a1e80929fe7f3 upstream.

The "ie_len" is a value in the 1-255 range that comes from the user.  We
have to cap it to ensure that it's not too large or it could lead to
memory corruption.

Fixes: 9a7fe54ddc ("staging: r8188eu: Add source files for new driver - part 1")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/YEHyQCrFZKTXyT7J@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-17 17:03:53 +01:00
..
rtw_ap.c staging: rtl8188eu: fix potential memory corruption in rtw_check_beacon_data() 2021-03-17 17:03:53 +01:00
rtw_cmd.c staging: rtl8188eu: Replace function rtw_alloc_network() 2019-07-22 07:34:15 +02:00
rtw_debug.c staging: rtl8188eu: remove code that is valid only for 5 GHz 2018-09-18 13:25:01 +02:00
rtw_efuse.c staging: rtl8188eu: core: add spaces around '-', '+', '>>','<<' and '*' in rtw_efuse.c 2019-08-05 17:09:48 +02:00
rtw_ieee80211.c staging: rtl8188eu: make two arrays static const, makes object smaller 2019-09-12 10:35:52 +01:00
rtw_ioctl_set.c staging: rtl8188eu: Refactoring struct ndis_802_11_ssid from CamelCase to correct code style. 2019-01-15 17:31:52 +01:00
rtw_iol.c staging: rtl8188eu: remove unnecessary parentheses 2018-08-05 16:23:28 +02:00
rtw_led.c staging: rtl8188eu: rename SwLed0 to avoid CamelCase 2018-11-22 11:14:59 +01:00
rtw_mlme.c Staging: rtl8188eu: rtw_mlme: Fix uninitialized variable authmode 2020-08-11 15:33:34 +02:00
rtw_mlme_ext.c staging: rtl8188eu: core: Replace function Set_MSR() 2019-07-22 07:34:14 +02:00
rtw_pwrctrl.c Staging: rtl8188eu: core: rtw_pwrctrl.c: Fix a comparision warning. 2019-03-18 18:53:16 +01:00
rtw_recv.c staging:r8188eu: avoid skb_clone for amsdu to msdu conversion 2020-10-01 13:17:57 +02:00
rtw_rf.c staging: rtl8188eu: add SPDX identifiers 2018-06-26 11:58:22 +08:00
rtw_security.c Staging: rtl8188eu: core: rtw_security: tidy up crc32_init() 2019-08-08 18:59:18 +02:00
rtw_sreset.c staging: rtl8188eu: rename struct field Wifi_Error_Status 2018-12-06 16:12:19 +01:00
rtw_sta_mgt.c staging: rtl8188eu: cleanup remaining comparsions to true 2018-11-26 20:59:04 +01:00
rtw_wlan_util.c staging: rtl8188eu: Replace function beacon_timing_control() 2019-07-22 07:34:14 +02:00
rtw_xmit.c staging: rtl8188eu: fix possible null dereference 2019-12-31 16:43:10 +01:00