Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2afd32b8 authored by Cong Wang's avatar Cong Wang Committed by Greg Kroah-Hartman
Browse files

netfilter: fix a use-after-free in mtype_destroy()



commit c120959387efa51479056fd01dc90adfba7a590c upstream.

map->members is freed by ip_set_free() right before using it in
mtype_ext_cleanup() again. So we just have to move it down.

Reported-by: default avatar <syzbot+4c3cc6dbe7259dbf9054@syzkaller.appspotmail.com>
Fixes: 40cd63bf ("netfilter: ipset: Support extensions which need a per data destroy function")
Acked-by: default avatarJozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a0a3385
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment