netfilter: conntrack: call nf_ct_gre_keymap_destroy() if master helper is pptp

[ Upstream commit b0f02608fb ]

For GRE flows, validate that the ct master helper (if any) is pptp
before calling nf_ct_gre_keymap_destroy(), so the helper data area
can be accessed safely. Note that only the pptp helper provides a
.destroy callback.

Fixes: e56894356f ("netfilter: conntrack: remove l4proto destroy hook")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Pablo Neira Ayuso 2026-06-04 08:21:13 +02:00 • committed by Greg Kroah-Hartman
commit ad38166cb1