summaryrefslogtreecommitdiff
path: root/net/netfilter/nf_conntrack_seqadj.c
diff options
context:
space:
mode:
authorOliver Hartkopp <socketcan@hartkopp.net>2023-08-21 17:45:47 +0300
committerJakub Kicinski <kuba@kernel.org>2023-08-23 03:18:50 +0300
commitc275a176e4b69868576e543409927ae75e3a3288 (patch)
tree56450b459d4dbd7addb5684ac6d5b90650a1bfd7 /net/netfilter/nf_conntrack_seqadj.c
parent0bfe71159230bab79ee230225ae12ffecbb69f3e (diff)
downloadlinux-c275a176e4b69868576e543409927ae75e3a3288.tar.xz
can: raw: add missing refcount for memory leak fix
Commit ee8b94c8510c ("can: raw: fix receiver memory leak") introduced a new reference to the CAN netdevice that has assigned CAN filters. But this new ro->dev reference did not maintain its own refcount which lead to another KASAN use-after-free splat found by Eric Dumazet. This patch ensures a proper refcount for the CAN nedevice. Fixes: ee8b94c8510c ("can: raw: fix receiver memory leak") Reported-by: Eric Dumazet <edumazet@google.com> Cc: Ziyang Xuan <william.xuanziyang@huawei.com> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Link: https://lore.kernel.org/r/20230821144547.6658-3-socketcan@hartkopp.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_seqadj.c')
0 files changed, 0 insertions, 0 deletions