CVE-2026-53218
Received Received - Intake
Heap Out-of-Bounds Write in Linux Kernel Netfilter nft_exthdr

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
linux_kernel linux_kernel *
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in the Linux kernel's netfilter nft_exthdr component. Specifically, the function nft_exthdr_init() passes a user-controlled length value to nft_parse_register_store(), which marks that many bytes in a register bitmap as initialized. However, when the NFT_EXTHDR_F_PRESENT flag is set, only 1 or 4 bytes are actually written during evaluation, depending on the path. If the length is greater than 4, registers beyond the first few remain uninitialized, potentially exposing uninitialized stack data from nft_regs.

The fix involves bailing out if userspace requests too much data when the F_PRESENT flag is set, preventing the use of uninitialized data.

Impact Analysis

This vulnerability can lead to the exposure of uninitialized stack data from the nft_regs structure. Since uninitialized data may contain sensitive information, an attacker could potentially access or leak this data, leading to information disclosure.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-53218. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart