]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: hook list memleak in flowtable deletion
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jun 2020 17:29:16 +0000 (19:29 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 12 Jun 2020 15:48:21 +0000 (17:48 +0200)
commit359624875fe10795adbf29d1e29c5a89f7494548
treebe9ebce8d35b5bd6f9310de6266bcaace3540954
parent8c91776bcd2e1f05f67e4b6fbac511a1f9eca6ae
netfilter: nf_tables: hook list memleak in flowtable deletion

After looking up for the flowtable hooks that need to be removed,
release the hook objects in the deletion list. The error path needs to
released these hook objects too.

Fixes: 6a32264e7707 ("netfilter: nf_tables: delete devices from flowtable")
Reported-by: syzbot+eb9d5924c51d6d59e094@syzkaller.appspotmail.com
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c