{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1cd472bf036ca038e783ef5f058f54e45b7e8180"
            },
            {
              "fixed": "79084567cd082fb4482e1ea457580e7d6504dd99"
            },
            {
              "fixed": "df80342f4bfc023ad7d6703df5e27f583ff0cb8d"
            },
            {
              "fixed": "cbdd39ce42530a193c56beb206a3356cb6d01016"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.18.0"
            },
            {
              "fixed": "6.18.54"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.2.8"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98321.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_nat: unregister and release hooks on error\n\nIf nf_hook_entries_insert_raw() fails, the NAT hooks get never released,\nresulting in a memleak.\n\nPostpone setting nat_proto_net-\u003enat_hook_ops when the hooks are\nregistered to simplify the error path to decide whether the nat hooks\nneed unwinding.",
  "id": "CVE-2026-98321",
  "modified": "2026-10-08T02:30:48.401001532Z",
  "published": "2026-10-06T08:46:15.546Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/79084567cd082fb4482e1ea457580e7d6504dd99"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cbdd39ce42530a193c56beb206a3356cb6d01016"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/df80342f4bfc023ad7d6703df5e27f583ff0cb8d"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98321.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98321"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "netfilter: nf_nat: unregister and release hooks on error"
}