1
0
Fork 0
alistair23-linux/drivers/net/ethernet/freescale
Rasmus Villemoes c2ca14cc6f ethernet: ucc_geth: fix use-after-free in ucc_geth_remove()
[ Upstream commit e925e0cd2a ]

ugeth is the netdiv_priv() part of the netdevice. Accessing the memory
pointed to by ugeth (such as done by ucc_geth_memclean() and the two
of_node_puts) after free_netdev() is thus use-after-free.

Fixes: 80a9fad8e8 ("ucc_geth: fix module removal")
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 20:16:11 +01:00
..
dpaa Revert "dpaa_eth: fix usage as DSA master, try 3" 2020-07-31 18:39:32 +02:00
dpaa2 dpaa2-eth: fix error return code in setup_dpni() 2020-10-01 13:17:57 +02:00
enetc enetc: Fix reporting of h/w packet counters 2020-12-21 13:27:04 +01:00
fman fsl/fman: fix eth hash table allocation 2020-08-19 08:16:21 +02:00
fs_enet net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
Kconfig net: freescale: select CONFIG_FIXED_PHY where needed 2020-06-03 08:21:12 +02:00
Makefile enetc: Introduce basic PF and VF ENETC ethernet drivers 2019-01-24 21:55:53 -08:00
fec.h net: fec: set GPR bit on suspend by DT configuration. 2020-05-02 08:48:55 +02:00
fec_main.c net: fec: Fix PHY init after phy_reset_after_clk_enable() 2020-10-29 09:57:23 +01:00
fec_mpc52xx.c net: ethernet: fix similar warning reported by kbuild test robot 2019-05-10 15:14:29 -07:00
fec_mpc52xx.h
fec_mpc52xx_phy.c
fec_ptp.c net: fec_ptp: Use platform_get_irq_xxx_optional() to avoid error message 2019-10-29 17:57:16 -07:00
fsl_pq_mdio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
gianfar.c gianfar: Account for Tx PTP timestamp in the skb headroom 2020-11-10 12:37:25 +01:00
gianfar.h gianfar: cleanup gianfar.h 2019-09-05 12:28:15 +02:00
gianfar_ethtool.c gianfar: remove forward declarations 2019-09-05 12:28:14 +02:00
ucc_geth.c ethernet: ucc_geth: fix use-after-free in ucc_geth_remove() 2021-01-12 20:16:11 +01:00
ucc_geth.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
ucc_geth_ethtool.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
xgmac_mdio.c net/fsl: treat fsl,erratum-a011043 2020-02-05 21:22:51 +00:00