Files
linux/drivers/net
Vincent Mailhol ddd1416f44 can: peak_usb: fix use after free bugs
[ Upstream commit 50aca891d7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-27 11:47:48 +01:00
..
2020-09-03 11:26:41 +02:00
2020-11-10 12:37:26 +01:00
2021-01-17 14:05:36 +01:00
2019-07-03 11:24:38 -07:00
2019-05-14 15:20:11 -07:00
2019-09-27 20:58:35 +02:00
2019-07-30 14:21:32 -07:00