---
id: CVE-2026-98321
title: |-
  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 set…
summary: |-
  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 set…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 1cd472bf036ca038e783ef5f058f54e45b7e8180 <
    79084567cd082fb4482e1ea457580e7d6504dd99
  - >-
    Linux >= 1cd472bf036ca038e783ef5f058f54e45b7e8180 <
    df80342f4bfc023ad7d6703df5e27f583ff0cb8d
  - >-
    Linux >= 1cd472bf036ca038e783ef5f058f54e45b7e8180 <
    cbdd39ce42530a193c56beb206a3356cb6d01016
  - Linux 4.18
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T09:18:24.117'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98321'
references:
  - url: 'https://git.kernel.org/stable/c/79084567cd082fb4482e1ea457580e7d6504dd99'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/cbdd39ce42530a193c56beb206a3356cb6d01016'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/df80342f4bfc023ad7d6703df5e27f583ff0cb8d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-06T08:50:17.407Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
