MEDIUM 5.5

CVE-2026-53218: Linux Kernel Netfilter Register Tracking Vulnerability

A flaw in the Linux kernel's netfilter subsystem allows a local, unprivileged user to trigger a condition where uninitialized memory is exposed through network packet filtering rules. When a specific flag (F_PRESENT) is used in netfilter extended header matching, the kernel incorrectly tracks which register storage areas have been written to, leaving portions of kernel stack memory accessible. This can lead to information disclosure or system instability.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses (CWE)
CWE-908
Affected products
8 configuration(s)
Published / Modified
2026-06-25 / 2026-07-02

NVD description (verbatim)

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.

8 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-53218 affects the nft_exthdr module in netfilter. The vulnerability stems from a mismatch between declared register usage and actual writes when the NFT_EXTHDR_F_PRESENT flag is set. The nft_exthdr_init() function accepts a user-controlled length parameter (priv->len) and marks that range in the register bitmap as initialized via nft_parse_register_store(). However, the packet evaluation path writes only 1 byte (via nft_reg_store8) or 4 bytes (via direct assignment on error) regardless of the declared length. When len exceeds 4 bytes, the additional register space remains unwritten, exposing uninitialized stack data from nft_regs. The root cause is CWE-908 (Use of Uninitialized Resource).

Business impact

This vulnerability primarily affects confidentiality and availability on systems running vulnerable Linux kernels where local users can craft netfilter rules. An attacker with local access could read sensitive kernel memory contents or cause denial of service through kernel instability. Organizations relying on netfilter for stateful packet filtering, QoS, or firewall rules may experience information leakage or service interruptions if exploited. The impact is limited to local attack scenarios, reducing risk for internet-facing systems but increasing concern for multi-tenant environments, containers, or shared hosting platforms.

Affected systems

The Linux kernel is affected across multiple versions. Organizations should verify their specific kernel version against vendor advisories and kernel.org release notes. Embedded systems, network appliances, cloud infrastructure, and Linux distributions using the mainline or stable kernel branches with netfilter enabled are potentially affected. Desktop and server deployments with user-space netfilter tools (nftables) active are at risk.

Exploitability

Exploitation requires local system access with the ability to load or modify netfilter rules. This typically requires unprivileged user-space access to the nftables command-line interface or library. The attack is reliable and does not require race conditions; however, practical exploitation depends on the system's netfilter configuration policy. Internet-facing servers without local user accounts or container escape vectors face minimal direct risk. The vulnerability is not remotely exploitable in default configurations.

Remediation

Apply kernel updates that include the fix to nft_exthdr_init(). The patch validates that userspace does not request excessive data when F_PRESENT is set, preventing the register tracking mismatch. Verify the specific patch version from your Linux distribution or kernel.org. Until patching is possible, restrict unprivileged user access to nftables rules and disable unnecessary netfilter extended header matching rules if operationally feasible.

Patch guidance

Contact your Linux distribution vendor for patched kernel versions (e.g., stable release channels for Debian, Ubuntu, Red Hat, SUSE, or Arch). Kernel.org provides upstream fixes in the mainline and stable branches. When testing patches, verify that nftables functionality remains intact and that existing firewall rules continue to operate as expected. Reboot is required to activate kernel patches.

Detection guidance

Monitor kernel logs for netfilter-related errors or unusual memory access patterns. System administrators can inspect active nftables rules using 'nft list ruleset' to identify potentially suspicious extended header matching configurations that request unusually large register allocations. Security Information and Event Management (SIEM) systems should alert on local privilege escalation attempts paired with nftables rule modifications. Kernel-level tracing (e.g., kprobes, eBPF) can detect calls to nft_exthdr_init with suspicious parameters.

Why prioritize this

Although the CVSS score is MEDIUM (5.5), this vulnerability affects a core kernel subsystem with limited exploitability scope (local only) and no current KEV inclusion. Organizations should prioritize patching based on their local access controls and netfilter reliance. High-priority for systems allowing untrusted local users; lower priority for hardened single-user or container-isolated deployments. The confidentiality risk of kernel memory leakage and the availability impact of potential crashes warrant timely remediation in general enterprise environments.

Risk score, explained

The CVSS:3.1 score of 5.5 (MEDIUM) reflects a locally exploitable flaw with low complexity, requiring unprivileged user access but producing no direct confidentiality impact under standard scoring rules (though information disclosure risk is present). The score weights the availability impact (High) against the limited attack vector and scope. Organizations handling sensitive workloads or supporting untrusted local users should treat this as a higher internal priority despite the MEDIUM baseline.

Frequently asked questions

Can this vulnerability be exploited remotely?

No. The vulnerability requires local system access with the ability to load or modify netfilter rules. It cannot be triggered from the network.

What is the practical impact of uninitialized memory exposure through netfilter?

An attacker could read sensitive kernel memory, including cryptographic keys, session tokens, or other process data residing in kernel stack. In some cases, the exposure could also contribute to kernel instability or panic.

Do I need to patch if I don't use nftables?

If your system does not load the netfilter extended header (nft_exthdr) module or does not allow unprivileged users to modify firewall rules, your risk is substantially lower. However, patching is still recommended as a best practice for systems running vulnerable kernels.

What should I do immediately while waiting for patches?

Review and restrict permissions on nftables commands. Disable or audit extended header matching rules. Prevent unprivileged users from modifying netfilter configuration. Apply kernel updates from your vendor as soon as they become available.

This analysis is provided for informational purposes and does not constitute professional security advice. Verify all patch versions, affected product lists, and remediation steps against official vendor advisories and your specific environment. SEC.co makes no warranty regarding the completeness or accuracy of this information. Organizations must conduct their own risk assessment and testing before deploying patches. CVSS and KEV data are current as of the publication date and may change. Source: NVD (public-domain), retrieved 2026-08-03. Analysis generated by SEC.co (claude-haiku-4-5).