CVE-2026-98793

netfilter: bpf: reject invalid NAT manipulation types

Published Oct 18, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In the Linux kernel, the bpf_ct_set_nat_info() function fails to validate the NAT manipulation type, which allows an attacker to supply a wrong value that is passed directly to nf_nat_setup_info(). This triggers a WARN_ON inside nf_nat_setup_info(), and if the kernel’s panic_on_warn is unset, the IPS_SRC_NAT_DONE flag is set without adding a nat_bysource entry. Consequently, the connection‑track cleanup routine attempts to unlink an uninitialized hlist node, which can cause a kernel crash and bring the system down.

Affected Systems

The flaw resides in the netfilter module of the Linux kernel and affects any installation that compiles the kernel with the unpatched netfilter BPF pathway. Inferred: any distribution running a kernel built with this code before the commit that added NAT type validation is vulnerable. No specific version range is listed in the advisory.

Risk and Exploitability

The vulnerability carries a moderate impact: if an attacker can inject a malformed NAT manipulation value via a BPF program, the kernel may trigger a WARN_ON, set the IPS_SRC_NAT_DONE state improperly, and finally crash, resulting in a denial‑of‑service. The CVSS score of 4.4 indicates moderate severity; the lack of a KEV listing and an EPSS score of < 1% suggest that public exploitation has not yet been observed. Inferred: there is no current evidence of exploitation. The vulnerability requires privileged access to load or modify BPF programs, typically via CAP_NET_ADMIN; this level of privilege is a common target for system administrators and may be abused if misconfigured. Inferred: if such privileges exist, the potential for exploitation increases. Therefore, the risk is moderate for systems that expose BPF loading to untrusted users or run with elevated capabilities, while the exploit likelihood remains uncertain.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the bpf_ct_set_nat_info validation and returns NF_DROP on invalid NAT manipulation types.
  • Restrict the use of CAP_NET_ADMIN or BPF program loading to trusted users and enforce least privilege. If possible, disable or restrict netfilter BPF functionality until the patch can be applied.
  • Audit existing BPF programs to confirm they do not pass unsupported NAT manipulation types, and consider disabling any that do.

Generated by OpenCVE AI on October 24, 2026 at 02:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-9018-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9018-2 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-824
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
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.
Title netfilter: bpf: reject invalid NAT manipulation types
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-824

    Access of Uninitialized Pointer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:39 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 30, 2026, 1:21 PM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM