netfilter: nft_compat: use-after-free when deleting targets
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Feb 2019 12:03:53 +0000 (13:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:08 +0000 (10:08 +0100)
commit7cfbf4cefbc9374abe54b4838a737e348e907337
treeb8508c38d2c500d94ec97afd9d696c954f357bde
parentc92ba8820aca58e38dceeec554904307ac2e0851
netfilter: nft_compat: use-after-free when deleting targets

commit 753c111f655e38bbd52fc01321266633f022ebe2 upstream.

Fetch pointer to module before target object is released.

Fixes: 29e3880109e3 ("netfilter: nf_tables: fix use-after-free when deleting compat expressions")
Fixes: 0ca743a55991 ("netfilter: nf_tables: add compatibility layer for x_tables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nft_compat.c