KernelScan.io

HIGH Introduced in 6.1

netfilter BpfNat Corruption

CVE-2026-98793

CVSS 7.8 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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.

02

Engine v0.9.0

Risk summary

A local attacker with CAP_BPF (or in a user namespace with unprivileged BPF enabled) can load a BPF program that calls bpf_ct_set_nat_info with an invalid NAT manipulation type. This corrupts connection tracking state, leading to an uninitialized hlist node being accessed during cleanup, which can result in arbitrary kernel memory corruption, privilege escalation, or denial of service.

Affectednet/netfilter/nf_nat_bpf.c (netfilter BPF NAT helper)

Vulnerability analysis

A BPF helper for configuring network address translation did not check whether the requested manipulation type was valid before passing it to the core NAT logic. A malicious BPF program could supply an unsupported type, causing the connection tracking subsystem to mark a NAT operation as complete without initializing the associated data structures. Later, when the connection entry was cleaned up, the kernel tried to remove an uninitialized list node, leading to uncontrolled pointer dereferences and memory corruption. The fix adds a validation check in the helper to reject invalid types early, and makes the core NAT setup abort the operation instead of proceeding with inconsistent state.

03

BranchIntroducedFixed inPatch commit
6.16.16.1.191ce7b41f0e4b5
6.126.16.12.113ea777dc90ab3
6.186.16.18.56f6143ae109df
6.66.16.6.160752492947be3
7.26.17.2.1058108f05b050
mainline6.17.316d464013ec2
cip/6.126.16.12.114-cip34ea777dc90ab3

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)