linux-stable/drivers/staging/rtl8192e
YueHaibing ea6bcdf2eb 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>
2022-12-31 13:26:27 +01:00
..
rtl8192e staging: rtl8192e: Remove u16 cast for u32 parameter 2022-04-26 11:35:18 +02:00
dot11d.c
dot11d.h
Kconfig
Makefile
rtl819x_BA.h
rtl819x_BAProc.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
rtl819x_HT.h
rtl819x_HTProc.c
rtl819x_Qos.h
rtl819x_TS.h
rtl819x_TSProc.c
rtllib.h staging/rtl8192e,ieee80211: replace ps tasklet with work 2022-04-12 15:53:51 +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
rtllib_debug.h staging: rtl8192e: use BIT macro instead of left shifting 2022-02-21 18:13:37 +01:00
rtllib_module.c
rtllib_rx.c staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor() 2022-12-31 13:26:27 +01:00
rtllib_softmac.c staging: rtl8192e: remove null check after call container_of() 2022-05-19 17:42:43 +02:00
rtllib_softmac_wx.c staging: rtl8192e: Remove space after cast 2022-04-20 18:47:25 +02:00
rtllib_tx.c Staging: rtl8192e: Cleaning up error handling 2022-06-27 13:50:03 +02:00
rtllib_wx.c Staging: rtl8192e: Added spaces around '+' 2022-07-08 14:25:46 +02:00
TODO