diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-01-16 13:09:31 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-01-16 14:22:32 +0100 |
commit | cd77e75b5e4632d05d61fec5383052713c8ede2b (patch) | |
tree | 71683e0bc3c4cc4fb380baa4101c12d95ffcf816 /net/qrtr | |
parent | 9332d27d7918182add34e8043f6a754530fdd022 (diff) | |
download | linux-cd77e75b5e4632d05d61fec5383052713c8ede2b.tar.bz2 |
netfilter: nf_tables: fix memory leak in nf_tables_parse_netdev_hooks()
Syzbot detected a leak in nf_tables_parse_netdev_hooks(). If the hook
already exists, then the error handling doesn't free the newest "hook".
Reported-by: syzbot+f9d4095107fc8749c69c@syzkaller.appspotmail.com
Fixes: b75a3e8371bc ("netfilter: nf_tables: allow netdevice to be used only once per flowtable")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/qrtr')
0 files changed, 0 insertions, 0 deletions