Skip to content
Heist/ feed
Back to feed
UnratedFix available

netfilter: nft_nat: fully initialise new_addr in netmap setup

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_nat: fully initialise new_addr in netmap setup nft_nat_setup_netmap() builds the mapped address in an on-stack union nf_inet_addr. For an IPv4 mapping it writes only the 4-byte .ip member and the loop runs a single 32-bit iteration, but it then copies the whole 16-byte union into range->min_addr and range->max_addr, so the upper 12 bytes reach nf_nat_setup_info() uninitialised. KMSAN reports an uninit-value in nf_nat_setup_info() reached from nft_nat_eval(). The IPv6 path fills all 16 bytes and is not affected. Zero-initialise new_addr.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.271, 5.15.222, 6.1.189, 6.12.112, 6.18.54, 6.6.158, 7.2.8
CVEs
CVE-2026-98322
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 11:22 UTC · Revision 1

Source evidence

netfilter: nft_nat: fully initialise new_addr in netmap setup

core-osv · Original source

Published 6 Oct 2026, 08:46 UTC

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_nat: fully initialise new_addr in netmap setup nft_nat_setup_netmap() builds the mapped address in an on-stack union nf_inet_addr. For an IPv4 mapping it writes only the 4-byte .ip member and the loop runs a single 32-bit iteration, but it then copies the whole 16-byte union into range->min_addr and range->max_addr, so the upper 12 bytes reach nf_nat_setup_info() uninitialised. KMSAN reports an uninit-value in nf_nat_setup_info() reached from nft_nat_eval(). The IPv6 path fills all 16 bytes and is not affected. Zero-initialise new_addr.

osv:CVE-2026-98322

Kernel

Fixed versions: 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8

Complete source record
{
  "id": "37c5468f61c2e26278813c618c92998f65c922e569b3ff10cb92b59db2c0d89c",
  "url": "https://osv.dev/vulnerability/CVE-2026-98322",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "netfilter: nft_nat: fully initialise new_addr in netmap setup",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_nat: fully initialise new_addr in netmap setup nft_nat_setup_netmap() builds the mapped address in an on-stack union nf_inet_addr. For an IPv4 mapping it writes only the 4-byte .ip member and the loop runs a single 32-bit iteration, but it then copies the whole 16-byte union into range->min_addr and range->max_addr, so the upper 12 bytes reach nf_nat_setup_info() uninitialised. KMSAN reports an uninit-value in nf_nat_setup_info() reached from nft_nat_eval(). The IPv6 path fills all 16 bytes and is not affected. Zero-initialise new_addr.",
    "evidence": "osv:CVE-2026-98322",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.271",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.222",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.189",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.158",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.112",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-98322",
      "aliases": [
        "CVE-2026-98322"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3ff7ddb1353da9b535e65702704cbadea1da9a00"
                },
                {
                  "fixed": "29365695842db0a97b701a43a09fad1b4f7ecf3e"
                },
                {
                  "fixed": "7b9380c38c2fd2189416fa602bdbc5c8523b84b2"
                },
                {
                  "fixed": "eb2030137dba3b59cbb5057a33af70488d6bc231"
                },
                {
                  "fixed": "e4982c489ee359162eee3ece1fb36082648464a5"
                },
                {
                  "fixed": "161f5860c92a8ec80b6bdff16e79d70dcd8afc5a"
                },
                {
                  "fixed": "0ce42c7b84032335abff9eac43762e4ca8224451"
                },
                {
                  "fixed": "1c43f5db482f74b41987c39c9c375a5e767556eb"
                },
                {
                  "fixed": "d313499df66159b4b7971d760d16729598ab7e5a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98322.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.8.0"
                },
                {
                  "fixed": "5.10.271"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.222"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.189"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.158"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.112"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98322.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.133919053Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0ce42c7b84032335abff9eac43762e4ca8224451",
        "https://git.kernel.org/stable/c/161f5860c92a8ec80b6bdff16e79d70dcd8afc5a",
        "https://git.kernel.org/stable/c/1c43f5db482f74b41987c39c9c375a5e767556eb",
        "https://git.kernel.org/stable/c/29365695842db0a97b701a43a09fad1b4f7ecf3e",
        "https://git.kernel.org/stable/c/7b9380c38c2fd2189416fa602bdbc5c8523b84b2",
        "https://git.kernel.org/stable/c/d313499df66159b4b7971d760d16729598ab7e5a",
        "https://git.kernel.org/stable/c/e4982c489ee359162eee3ece1fb36082648464a5",
        "https://git.kernel.org/stable/c/eb2030137dba3b59cbb5057a33af70488d6bc231",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98322.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-98322",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98322.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-98322",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 494913,
  "published_at": "2026-10-06T08:46:16.346+00:00"
}