CVE-2026-98793 PUBLISHED

netfilter: bpf: reject invalid NAT manipulation types

Assigner: Linux
Reserved: 25.09.2026 Published: 18.10.2026 Updated: 18.10.2026

In the Linux kernel, the following vulnerability has been resolved:

netfilter: bpf: reject invalid NAT manipulation types

As bpf_ct_set_nat_info() is not validating the NAT manipulation type a wrong value can be passed directly to nf_nat_setup_info(). This triggers the WARN_ON() at nf_nat_setup_info() and if panic_on_warn isn't set, then IPS_SRC_NAT_DONE is set without adding nat_bysource and conntrack cleanup tries to unlink an uninitialized hlist node.

Fix this by checking that NAT manipulation type is correct before calling nf_nat_setup_info(). In addition, if the WARN_ON is hit, return NF_DROP instead of continuing with the processing to avoid similar situations in the future.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to ea777dc90ab37e64fa4b92f6fcf3b5edcef5e058 (excl.)
  • affected from 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to f6143ae109df56d51d5536e813deb19eee7a6205 (excl.)
  • affected from 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to 58108f05b0502448f6bb612ee2eccc63bd6449cb (excl.)
  • affected from 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to 16d464013ec2267b00a83f4bfbb97b3ecc63bfa7 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.1 is affected
  • unaffected from 0 to 6.1 (excl.)
  • unaffected from 6.12.113 to 6.12.* (incl.)
  • unaffected from 6.18.56 to 6.18.* (incl.)
  • unaffected from 7.2.10 to 7.2.* (incl.)
  • unaffected from 7.3-rc6 to * (incl.)

References