syzbot


KASAN: use-after-free Read in nf_tables_dump_sets
Status: upstream: reported syz repro on 2021/08/09 15:38
Reported-by: syzbot+8cc940a9689599e10587@syzkaller.appspotmail.com
Fix commit: a499b03bf36b netfilter: nf_tables: unlink table before deleting it
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 115d, last: 85d

Cause bisection: introduced by (bisect log) :
commit 6001a930ce0378b62210d4f83583fc88a903d89d
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Date: Mon Feb 15 11:28:07 2021 +0000

  netfilter: nftables: introduce table ownership

Crash: KASAN: use-after-free Read in nft_table_lookup (log)
Repro: syz .config

Fix bisection: fixed by (bisect log) :
commit a499b03bf36b0c2e3b958a381d828678ab0ffc5e
Author: Florian Westphal <fw@strlen.de>
Date: Mon Sep 13 12:42:33 2021 +0000

  netfilter: nf_tables: unlink table before deleting it


Sample crash report:

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2021/08/08 07:04 net-next f9be84db09d2 6972b106 .config log report syz KASAN: use-after-free Read in nf_tables_dump_sets