linux/drivers/staging/rtl8192e
YueHaibing 7155f549db staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor()
[ Upstream commit d30f4436f3 ]

The skb is delivered to netif_rx() in rtllib_monitor_rx(), which may free it,
after calling this, dereferencing skb may trigger use-after-free.
Found by Smatch.

Fixes: 94a799425e ("From: wlanfae <wlanfae@realtek.com> [PATCH 1/8] rtl8192e: Import new version of driver from realtek")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20221123081253.22296-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2022-12-31 13:32:42 +01:00
..
rtl8192e staging: rtl8192e: Rename variable Bandwidth to avoid CamelCase 2022-09-30 14:34:38 +02: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: Describe each kernel config option 2022-08-30 17:17:03 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rtl819x_BA.h staging: rtl8192e: reformat ba_record struct 2021-03-10 09:25:28 +01:00
rtl819x_BAProc.c staging: rtl8192e: Rename PeerMimoPs, IOTAction and IOTRaFunc 2022-09-26 10:34:29 +02:00
rtl819x_HT.h staging: rtl8192e: Remove unused variables ForcedAMSDUMaxSize, ... 2022-09-26 10:34:29 +02:00
rtl819x_HTProc.c staging: rtl8192e: Rename variable Bandwidth to avoid CamelCase 2022-09-30 14:34:38 +02: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: reformat rx_ts_record struct 2021-03-10 09:25:32 +01:00
rtl819x_TSProc.c staging: rtl8192e: Rename RxRe...WinSize, RxReorder... and RxReorderDr... 2022-09-26 10:34:29 +02:00
rtllib.h staging: rtl8192e: Rename variable Bandwidth to avoid CamelCase 2022-09-30 14:34:38 +02:00
rtllib_crypt_ccmp.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
rtllib_crypt_tkip.c staging: rtl8192e: Remove u16 cast for u16 return value 2022-04-26 11:35:19 +02:00
rtllib_crypt_wep.c mm: remove kzfree() compatibility definition 2020-10-25 11:39:02 -07:00
rtllib_debug.h staging: rtl8192e: Remove ftrace-like logging in rtl819x_BAProc.c, ... 2022-09-24 12:59:53 +02:00
rtllib_module.c staging: rtl8192e: rtllib_module: remove unnecessary assignment 2021-12-03 15:09:49 +01:00
rtllib_rx.c staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor() 2022-12-31 13:32:42 +01:00
rtllib_softmac.c staging: rtl8192e: Rename PeerMimoPs, IOTAction and IOTRaFunc 2022-09-26 10:34:29 +02:00
rtllib_softmac_wx.c staging: rtl8192e: remove bogus ssid character sign test 2022-10-25 19:13:48 +02:00
rtllib_tx.c staging: rtl8192e: Rename CurrentMPDU..., ForcedAMPDU... and ForcedMPDU... 2022-09-26 10:34:29 +02:00
rtllib_wx.c Staging: rtl8192e: Added spaces around '+' 2022-07-08 14:25:46 +02:00
TODO rtl8192e: Add a TODO 2011-08-23 20:04:16 -05:00