]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: possible module reference underflow in error path
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Aug 2022 15:23:52 +0000 (17:23 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Aug 2022 15:06:05 +0000 (17:06 +0200)
commit7f1b8cd466e682812380fd984c3ba7356eb317c6
tree45fa7249eea21ad991362492888fb28a3548c775
parentd47dbcab588b5a2c882c2f76f299c030aae41a01
netfilter: nf_tables: possible module reference underflow in error path

dst->ops is set on when nft_expr_clone() fails, but module refcount has
not been bumped yet, therefore nft_expr_destroy() leads to module
reference underflow.

Fixes: 03abf76334ec ("netfilter: nftables: generalize set expressions support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c