linux_dsm_epyc7002/drivers/net/fddi
Pavel Skripkin f33605908a net: fddi: fix UAF in fza_probe
commit deb7178eb940e2c5caca1b1db084a69b2e59b4c9 upstream.

fp is netdev private data and it cannot be
used after free_netdev() call. Using fp after free_netdev()
can cause UAF bug. Fix it by moving free_netdev() after error message.

Fixes: 61414f5ec9 ("FDDI: defza: Add support for DEC FDDIcontroller 700
TURBOchannel adapter")
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-25 14:36:20 +02:00
..
skfp fddi/skfp: Avoid the use of one-element array 2020-09-29 13:27:43 -07:00
defxx.c FDDI: defxx: Bail out gracefully with unassigned PCI resource for CSR 2021-05-14 09:49:57 +02:00
defxx.h defxx: Clean up DEFEA resource management 2014-11-21 16:37:13 -05:00
defza.c net: fddi: fix UAF in fza_probe 2021-07-25 14:36:20 +02:00
defza.h FDDI: defza: Add missing comment closing 2018-11-07 21:53:30 -08:00
Kconfig FDDI: defxx: Make MMIO the configuration default except for EISA 2021-05-14 09:50:00 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00