]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Feb 2019 17:14:54 +0000 (18:14 +0100)
commitd06c7471df85763245a70c4f7b6208dfa9de8a4d
treed060b6607757bd234625b6bc2c9ffeccfbbf62f7
parent0e46de8706367a7259e2b57b19b22fb5e65477d7
netfilter: nft_compat: use-after-free when deleting targets

Fetch pointer to module before target object is released.

Fixes: ef90947f6879 ("netfilter: nf_tables: fix use-after-free when deleting compat expressions")
Fixes: 27289a89ace7 ("netfilter: nf_tables: add compatibility layer for x_tables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_compat.c