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

netfilter: nft_exthdr: fix register tracking for F_PRESENT flag

nft_exthdr_init() passes user-controlled priv->len to
nft_parse_register_store(), which marks that many bytes in the
register bitmap as initialized. However, when NFT_EXTHDR_F_PRESENT
is set, the eval paths write only 1 byte (nft_reg_store8) or
4 bytes (*dest = 0 on TCP/DCCP error path). When len > 4,
registers beyond the first are never written, retaining
uninitialized stack data from nft_regs.

Bail out if userspace requests too much data when F_PRESENT is set.
Published: 2026-06-25
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel’s netfilter framework, the nft_exthdr component incorrectly tracks the initialization status of registers. When the F_PRESENT flag is set, nft_exthdr_init passes a user supplied length to nft_parse_register_store, marking that many registers as initialized. The subsequent evaluation path only writes one or a few bytes, but the registered bitmap remains marked as initialized beyond that point. Consequently, registers beyond the first are never written, leaving uninitialized stack data in nft_regs, which can be read by attackers and can expose sensitive information within the kernel.

Affected Systems

All Linux kernel builds that include the nft_exthdr extension without the patch are affected. The specific version range is not enumerated, but any kernel release containing the unpatched nft_exthdr code is vulnerable.

Risk and Exploitability

Because the flaw deals with uninitialized registers, an attacker could potentially extract kernel memory contents or influence further kernel behavior. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, so no known widespread exploitation has been observed. The CVSS score is unspecified in the advisory, but the nature of the bug indicates a moderate to high severity for kernel‑privileged attackers.

Generated by OpenCVE AI on June 25, 2026 at 11:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that resolves the bookkeeping issue for the nft_exthdr component (upgrade to a kernel release that includes the fix).
  • If patching is not feasible immediately, disable the nft_exthdr extension or avoid using the F_PRESENT flag in netfilter rules.
  • As a temporary measure, limit the length parameter passed by user‑space to 4 bytes when using the F_PRESENT flag so that only the bytes that are correctly written are accessed.

Generated by OpenCVE AI on June 25, 2026 at 11:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 25 Jun 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-457

Thu, 25 Jun 2026 09:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_exthdr: fix register tracking for F_PRESENT flag nft_exthdr_init() passes user-controlled priv->len to nft_parse_register_store(), which marks that many bytes in the register bitmap as initialized. However, when NFT_EXTHDR_F_PRESENT is set, the eval paths write only 1 byte (nft_reg_store8) or 4 bytes (*dest = 0 on TCP/DCCP error path). When len > 4, registers beyond the first are never written, retaining uninitialized stack data from nft_regs. Bail out if userspace requests too much data when F_PRESENT is set.
Title netfilter: nft_exthdr: fix register tracking for F_PRESENT flag
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-25T08:39:21.069Z

Reserved: 2026-06-09T07:44:35.392Z

Link: CVE-2026-53218

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T12:00:14Z

Weaknesses
  • CWE-457

    Use of Uninitialized Variable