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.
Published: 2026-10-06
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Memory Leak
Action: Apply Patch
AI Analysis

Impact

In the Linux kernel’s netfilter nf_nat subsystem, an error during the insertion of NAT hooks can cause the hooks to never be released, resulting in a memory leak. The leak arises because the code path that unregisters the hooks is not executed when nf_hook_entries_insert_raw fails. This flaw does not directly allow code execution but can lead to resource exhaustion or denial‑of‑service conditions if the leak accumulates over time.

Affected Systems

The vulnerability affects all Linux kernel implementations that include the nf_nat module and lack the patch applied in recent commits. No specific version range is listed, so any kernel build prior to the fix is potentially impacted.

Risk and Exploitability

While the CVSS score is not provided and EPSS is unavailable, the lack of a known exploit in CISA’s KEV catalog indicates no publicly demonstrated attacks. The risk is primarily moderate; an attacker with the ability to trigger the kernel hook insertion failure—likely a local or privileged user—could cause memory pressure and degrade system availability. The exploit path is inferred to require local kernel code execution, as the fault occurs within internal NF hook registration logic.

Generated by OpenCVE AI on October 6, 2026 at 12:56 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version containing the patch that ensures proper unregistering and release of NAT hooks. This is the recommended and safest action to eliminate the memory leak.
  • If updating the kernel is not immediately possible, consider disabling or removing unnecessary NAT modules to reduce the exposure of the failing hook logic. This can serve as a temporary mitigation until a patch can be applied.
  • Monitor system memory usage and watch for abnormal growth that may indicate the leak is active. Immediate rebooting can temporarily clear the leaked memory, though it does not fix the underlying issue.

Generated by OpenCVE AI on October 6, 2026 at 12:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 06 Oct 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Tue, 06 Oct 2026 09:00:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-06T08:46:15.546Z

Reserved: 2026-09-25T10:25:14.340Z

Link: CVE-2026-98321

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:24.117

Modified: 2026-10-06T09:18:24.117

Link: CVE-2026-98321

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-06T13:00:15Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime