CVE-2026-98322 PUBLISHED

netfilter: nft_nat: fully initialise new_addr in netmap setup

Assigner: Linux
Reserved: 25.09.2026 Published: 06.10.2026 Updated: 06.10.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 3ff7ddb1353da9b535e65702704cbadea1da9a00 to 29365695842db0a97b701a43a09fad1b4f7ecf3e (excl.)
  • affected from 3ff7ddb1353da9b535e65702704cbadea1da9a00 to 7b9380c38c2fd2189416fa602bdbc5c8523b84b2 (excl.)
  • affected from 3ff7ddb1353da9b535e65702704cbadea1da9a00 to eb2030137dba3b59cbb5057a33af70488d6bc231 (excl.)
  • affected from 3ff7ddb1353da9b535e65702704cbadea1da9a00 to e4982c489ee359162eee3ece1fb36082648464a5 (excl.)
  • affected from 3ff7ddb1353da9b535e65702704cbadea1da9a00 to 161f5860c92a8ec80b6bdff16e79d70dcd8afc5a (excl.)
  • affected from 3ff7ddb1353da9b535e65702704cbadea1da9a00 to 0ce42c7b84032335abff9eac43762e4ca8224451 (excl.)
  • affected from 3ff7ddb1353da9b535e65702704cbadea1da9a00 to 1c43f5db482f74b41987c39c9c375a5e767556eb (excl.)
  • affected from 3ff7ddb1353da9b535e65702704cbadea1da9a00 to d313499df66159b4b7971d760d16729598ab7e5a (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.8 is affected
  • unaffected from 0 to 5.8 (excl.)
  • unaffected from 5.10.271 to 5.10.* (incl.)
  • unaffected from 5.15.222 to 5.15.* (incl.)
  • unaffected from 6.1.189 to 6.1.* (incl.)
  • unaffected from 6.6.158 to 6.6.* (incl.)
  • unaffected from 6.12.112 to 6.12.* (incl.)
  • unaffected from 6.18.54 to 6.18.* (incl.)
  • unaffected from 7.2.8 to 7.2.* (incl.)
  • unaffected from 7.3-rc4 to * (incl.)

References