]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firewire: net: fix use after free in fwnet_finish_incoming_packet()
authorZhang Shurong <zhang_shurong@foxmail.com>
Fri, 23 Jun 2023 05:39:35 +0000 (13:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 12:23:24 +0000 (14:23 +0200)
commit2ea70379e4f4efa95c9daa7f3f9bdd4d40aec927
treeba73847716819414d737e9844daf7099507fdf43
parent97fd1c8e9c5aa833aab7e836760bc13103afa892
firewire: net: fix use after free in fwnet_finish_incoming_packet()

[ Upstream commit 3ff256751a2853e1ffaa36958ff933ccc98c6cb5 ]

The netif_rx() function frees the skb so we can't dereference it to
save the skb->len.

Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Link: https://lore.kernel.org/r/tencent_3B3D24B66ED66A6BB73CC0E63C6A14E45109@qq.com
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firewire/net.c