CVE-2026-98321

netfilter: nf_nat: unregister and release hooks on error

State
Published
Severity
Not scored
Published
Oct 6, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1cd472bf036ca038e783ef5f058f54e45b7e8180 to before 79084567cd082fb4482e1ea457580e7d6504dd99Affected
  • 1cd472bf036ca038e783ef5f058f54e45b7e8180 to before df80342f4bfc023ad7d6703df5e27f583ff0cb8dAffected
  • 1cd472bf036ca038e783ef5f058f54e45b7e8180 to before cbdd39ce42530a193c56beb206a3356cb6d01016Affected
LinuxLinux
  • 4.18Affected
  • before 4.18Not affected
  • 6.18.54 through 6.18.*Not affected
  • 7.2.8 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.