KernelScan.io

HIGH Introduced in 3.7

netfilter xt_nat Deref

CVE-2026-80664

CVSS 7.3 / 10.0 NVD

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

KernelScan AI5.7MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_nat: reject unsupported target families xt_nat SNAT and DNAT target handlers assume IP-family conntrack state is present and can dereference a NULL pointer when instantiated from an unsupported family through nft_compat. A bridge-family compat rule can therefore trigger a NULL-dereference in nf_nat_setup_info(). Reject non-IP families in xt_nat_checkentry() so unsupported targets cannot be installed. Keep NFPROTO_INET allowed for valid inet NAT compat users and leave the runtime fast path unchanged. [ The crash was fixed via 9dbba7e694ec ("netfilter: nft_compat: ebtables emulation must reject non-bridge targets"), so this patch is no longer critical. Nevertheless, NAT is only relevant for ipv4/ipv6, so this extra family check is a good idea in any case. ]

02

Engine v0.6.0

Risk summary

A local attacker with CAP_NET_ADMIN (obtainable in a user namespace) can install a bridge-family NAT compat rule via nft_compat that triggers a NULL pointer dereference in the kernel, causing a system crash or denial of service. The vulnerability requires netfilter NAT support and the ability to configure nftables rules.

Affectednet/netfilter/xt_nat.c (netfilter)

Vulnerability analysis

The kernel's NAT compatibility target assumes IP-family connection tracking state is always present. When an attacker installs a rule from an unsupported family such as bridge, that state is missing and the kernel dereferences a null pointer, causing a crash. The fix adds a family check during rule validation so that only IPv4, IPv6, and INET families are accepted, blocking unsupported targets from being installed. A local attacker with CAP_NET_ADMIN—which unprivileged users can acquire through a user namespace on most systems—can trigger this by installing a crafted compatibility rule.

03

BranchIntroducedFixed inPatch commit
5.103.75.10.26149abe5643914
5.153.75.15.2120afc9ad987c0
6.13.76.1.1784fbc2bac02ed
6.63.76.6.145a842dab87cab
6.183.76.18.40679ced28a9dc
mainline3.77.25d1a2240935e
6.123.76.12.97e35c048d7511
7.13.77.1.5ec88fa71c820
cip/4.193.74.19.325-cip13656572f2925f2
cip/4.19-rt3.74.19.325-cip136-rt5056572f2925f2
cip/4.43.74.4.302-cip115194e25e00a30
cip/4.4-rt3.74.4.302-cip115-rt63194e25e00a30
cip/5.103.75.10.263-cip7649abe5643914
cip/5.10-rt3.75.10.268-cip77-rt3449abe5643914
cip/6.13.76.1.182-cip594fbc2bac02ed
cip/6.1-rt3.76.1.182-cip59-rt314fbc2bac02ed
cip/6.123.76.12.101-cip29e35c048d7511