original_kernel/drivers/net/can
Vincent Mailhol 50aca891d7 can: peak_usb: fix use after free bugs
After calling peak_usb_netif_rx_ni(skb), dereferencing skb is unsafe.
Especially, the can_frame cf which aliases skb memory is accessed
after the peak_usb_netif_rx_ni().

Reordering the lines solves the issue.

Fixes: 0a25e1f4f1 ("can: peak_usb: add support for PEAK new CANFD USB adapters")
Link: https://lore.kernel.org/r/20210120114137.200019-4-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2021-01-20 13:33:28 +01:00
..
c_can
cc770
ifi_canfd
m_can
mscan
peak_canfd
rcar
sja1000
softing
spi
usb
Kconfig
Makefile
at91_can.c
dev.c
flexcan.c
grcan.c
janz-ican3.c
kvaser_pciefd.c
led.c
pch_can.c
rx-offload.c
slcan.c
sun4i_can.c
ti_hecc.c
vcan.c
vxcan.c
xilinx_can.c