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)
commit3003055f50663095472144994dac0339076031a8
treebe9ebce8d35b5bd6f9310de6266bcaace3540954
parent6c2d2176a85eb2fd65eb7cfe94b3bad0acce99c0
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: abadb2f865d7 ("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