CVE-2026-53267 netfilter: nft_ct: bail out on template ct in get eval

High 7.8 Published Updated

A stack buffer overflow in the Linux kernel netfilter subsystem allows local attackers to execute arbitrary code or escalate privileges via crafted nftables rules.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-53267?

CVE-2026-53267 is a high-severity memory corruption vulnerability in Linux kernel, published on 25 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nft_ct: bail out on template ct in get eval

I noticed this issue while looking at a historic syzbot report [1].

A rule like the one below is enough to trigger the bug:

table ip t { chain pre { type filter hook prerouting priority raw; ct zone set 1 ct original saddr 1.2.3.4 accept } }

The first expression attaches a per-cpu template ct via nft_ct_set_zone_eval() (nf_ct_tmpl_alloc -> kzalloc, tuple is all zero, nf_ct_l3num(ct) == 0). The next expression then calls nft_ct_get_eval() on the same skb, treats the template as a real ct and hits the 16-byte memcpy path. With dreg at NFT_REG32_15 this overflows past struct nft_regs on the kernel stack; with smaller dreg values it silently clobbers adjacent registers.

Reject template ct at the eval entry and in nft_ct_get_fast_eval(), mirroring the check nft_ct_set_eval() already has. Additionally, bound the address copy in NFT_CT_SRC / NFT_CT_DST by priv->len instead of by nf_ct_l3num(ct): nf_ct_get_tuple() zeroes the tuple before pkt_to_tuple() fills in only the protocol-relevant leading bytes, so the trailing bytes of tuple->{src,dst}.u3.all are well-defined zero. priv->len is validated at rule load, so the copy size is now bounded by the destination register rather than by an untrusted field on the conntrack.

[1]: https://syzkaller.appspot.com/bug?id=389cf09cb72926114fce90dc85a2c3231dcb647c

Weakness: CWE-674, CWE-121

Which versions are affected by CVE-2026-53267?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-53267?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-53267 being exploited?

There is no known exploitation of CVE-2026-53267 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-90947, BELL-CVE-2026-53267, DEBIAN-CVE-2026-53267, GHSA-mrf2-hc9c-229v, ROOT-OS-DEBIAN-11-CVE-2026-53267, ROOT-OS-DEBIAN-12-CVE-2026-53267 and 3 more.

Is CVE-2026-53267 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free