]> 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)
commit970b57812ce98e6b894daedb35b53bbc0a019755
treed060b6607757bd234625b6bc2c9ffeccfbbf62f7
parent4a31a3723ded1fa36a5c5cba90d32e0b670d9ce2
netfilter: nft_compat: use-after-free when deleting targets

Fetch pointer to module before target object is released.

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