CVE-2026-98321

netfilter: nf_nat: unregister and release hooks on error

Published Oct 6, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In the Linux kernel’s netfilter nf_nat subsystem, a failure in nf_hook_entries_insert_raw() prevents the system from unregistering and releasing NAT hooks when the insertion fails, resulting in a memory leak that steadily consumes kernel memory. This represents an improper resource management flaw that can compromise system stability by exhausting available memory.

Affected Systems

The flaw affects all Linux kernel versions that include the nf_nat module and have not yet applied the patch introduced in the recent commits; because the CPE entry covers all Linux kernel builds, any system running an unpatched nf_nat implementation is in scope.

Risk and Exploitability

The CVSS score of 5.5 denotes moderate severity, and an EPSS score below 1 % indicates a very low probability of exploitation; the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is local or requires privileged execution, as an attacker must either load a kernel module that triggers the fault or craft network traffic to provoke a hook insertion failure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that includes the nf_nat patch that correctly unregisters and frees hooks on error.
  • If an upgrade cannot be performed immediately, disable nf_nat functionality or unload the nf_nat module to prevent the faulty logic from executing.
  • Monitor kernel memory usage for abnormal growth and perform a reboot if leakage is observed, as reboot temporarily clears leaked memory until a fix is applied.

Generated by OpenCVE AI on October 11, 2026 at 05:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
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.
Title netfilter: nf_nat: unregister and release hooks on error
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:17 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 6, 2026, 9:18 AM
Modified
Oct 19, 2026, 10:18 AM
Severity
Low
Public date
Oct 6, 2026, 12:00 AM