[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_1625C3BA12BB3633E59EF81B504BC11B6808@qq.com>
Date: Tue, 2 Jul 2024 21:14:46 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+4fd66a69358fc15ae2ad@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [netfilter?] KASAN: slab-use-after-free Read in nf_tables_trans_destroy_work
Unbalanced increase and decrease of use in the table
#syz test: net-next 1c5fc27bc48a
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index 70d0bad029fd..b77b764955a0 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -1498,6 +1498,7 @@ static int nf_tables_newtable(struct sk_buff *skb, const struct nfnl_info *info,
if (err < 0)
goto err_trans;
+ nft_use_inc_restore(&table->use);
list_add_tail_rcu(&table->list, &nft_net->tables);
return 0;
err_trans:
Powered by blists - more mailing lists