CVE-2026-98793

netfilter: bpf: reject invalid NAT manipulation types

State
Published
Severity
Not scored
Published
Oct 18, 2026
Updated
Oct 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to before ce7b41f0e4b5db0580d0a2059a0c9e672b461b5eAffected
  • 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to before 752492947be3123ea6c689e2f93ae04ecd675d42Affected
  • 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to before ea777dc90ab37e64fa4b92f6fcf3b5edcef5e058Affected
  • 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to before f6143ae109df56d51d5536e813deb19eee7a6205Affected
  • 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to before 58108f05b0502448f6bb612ee2eccc63bd6449cbAffected
  • 0fabd2aa199faeb8754aee94658f2c48ccb2c8c3 to before 16d464013ec2267b00a83f4bfbb97b3ecc63bfa7Affected
LinuxLinux
  • 6.1Affected
  • before 6.1Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.113 through 6.12.*Not affected
  • 6.18.56 through 6.18.*Not affected
  • 7.2.10 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.