# CVE-2026-98321: netfilter: nf_nat: unregister and release hooks on error

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-06T08:46:15.546Z
- Modified: 2026-10-19T10:18:34.267Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1cd472bf036ca038e783ef5f058f54e45b7e8180 before 79084567cd082fb4482e1ea457580e7d6504dd99; from 1cd472bf036ca038e783ef5f058f54e45b7e8180 before df80342f4bfc023ad7d6703df5e27f583ff0cb8d; from 1cd472bf036ca038e783ef5f058f54e45b7e8180 before cbdd39ce42530a193c56beb206a3356cb6d01016; 4.18 (not affected: before 4.18; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

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

## Sources

- CVE List: [CVE-2026-98321](https://www.cve.org/CVERecord?id=CVE-2026-98321), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98321](https://nvd.nist.gov/vuln/detail/CVE-2026-98321), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98321 · Whole record: https://cve.day/CVE-2026-98321.json · Rebuilt by cve.day 2026-11-25T22:59:42.329Z
