1
0
Fork 0
alistair23-linux/drivers/staging/rtl8192e/rtl8192e
Pan Bian ab1908cbe2 staging: rtl8192e: fix potential use after free
commit b7aa39a2ed upstream.

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-12-04 22:30:47 +01:00
..
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +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
r8190P_def.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8190P_rtl8256.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8190P_rtl8256.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_cmdpkt.c staging: rtl8192e: remove a blank line 2019-04-16 13:32:19 +02:00
r8192E_cmdpkt.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_dev.c Staging: rtl8192e: Remove extra space before break statement 2019-05-02 19:43:18 +02:00
r8192E_dev.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_firmware.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_firmware.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_hw.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_hwimg.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_hwimg.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_phy.c staging: rtl8192e: remove redundant initialization of rtstatus 2019-07-03 18:34:09 +02:00
r8192E_phy.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192E_phyreg.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_cam.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_cam.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_core.c staging: rtl8192e: fix potential use after free 2019-12-04 22:30:47 +01:00
rtl_core.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_dm.c staging: rtl8192e: remove two set but not used variables 2019-08-21 09:15:43 -07:00
rtl_dm.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_eeprom.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_eeprom.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_ethtool.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_pci.c staging: rtl8192e: Remove set but not used variable 'VenderID' 2019-04-16 13:31:59 +02:00
rtl_pci.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_pm.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_pm.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_ps.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_ps.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_wx.c staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl_wx.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00