CVE-2026-98321: netfilter: nf_nat: unregister and release hooks on error
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfnat: unregister and release hooks on error
If nfhookentriesinsertraw() fails, the NAT hooks get never released, resulting in a memleak.
Postpone setting natprotonet->nathookops when the hooks are registered to simplify the error path to decide whether the nat hooks need unwinding.