HIGH Introduced in 6.1
netfilter BpfNat Corruption
CVE-2026-98793
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 6.1 | 6.1.191 | ce7b41f0e4b5 |
| 6.12 | 6.1 | 6.12.113 | ea777dc90ab3 |
| 6.18 | 6.1 | 6.18.56 | f6143ae109df |
| 6.6 | 6.1 | 6.6.160 | 752492947be3 |
| 7.2 | 6.1 | 7.2.10 | 58108f05b050 |
| mainline | 6.1 | 7.3 | 16d464013ec2 |
| cip/6.12 | 6.1 | 6.12.114-cip34 | ea777dc90ab3 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |