2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00
linux-next/drivers/staging/rtl8192e
Pan Bian b7aa39a2ed staging: rtl8192e: fix potential use after free
The variable skb is released via kfree_skb() when the return value of
_rtl92e_tx is not zero. However, after that, skb is accessed again to
read its length, which may result in a use after free bug. This patch
fixes the bug by moving the release operation to where skb is never
used later.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1572965351-6745-1-git-send-email-bianpan2016@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-05 17:50:21 +01:00
..
rtl8192e staging: rtl8192e: fix potential use after free 2019-11-05 17:50:21 +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: rtllib_crypt_ccmp.c: Use crypto API ccm(aes) 2019-08-18 08:51:11 +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: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl819x_BAProc.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02: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: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +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: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl819x_TSProc.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtllib_crypt_ccmp.c staging: rtl8192e: remove set but not used variable 'data_len' 2019-08-21 09:15:43 -07:00
rtllib_crypt_tkip.c Staging / IIO driver patches for 5.2-rc1 2019-05-07 13:31:29 -07:00
rtllib_crypt_wep.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02: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: remove set but not used variable 'payload ' 2019-07-25 09:58:26 +02: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: Make use kmemdup 2019-08-05 17:11:33 +02:00
rtllib_tx.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtllib_wx.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtllib.h staging: rtl8192e: remove unnecessary blank line 2019-09-05 09:37:31 +02:00
TODO