Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97965 Overview
CVE-2026-97965 is an uninitialized memory use vulnerability in the Linux kernel's VXLAN (Virtual Extensible LAN) driver. The flaw exists in the vxlan_xmit_one() function, where the local _md stack variable is not initialized before use. When a VXLAN device is configured with both VXLAN_F_COLLECT_METADATA and VXLAN_F_GBP, and a packet is transmitted using an external ip_tunnel_info that lacks the IP_TUNNEL_VXLAN_OPT_BIT flag, md continues to reference uninitialized stack memory. The result is that 16 bits of kernel stack data can be written into the VXLAN Group Policy Based (GBP) header and transmitted on the wire.
Critical Impact
Uninitialized kernel stack memory is leaked into VXLAN GBP headers, exposing sensitive kernel data to attackers on the receiving network segment.
Affected Products
- Linux kernel versions containing the vulnerable vxlan_xmit_one() implementation prior to the referenced stable commits
- Systems using VXLAN interfaces configured with VXLAN_F_COLLECT_METADATA and VXLAN_F_GBP
- Network overlays relying on VXLAN with Group Policy Based extensions
Discovery Timeline
- 2026-09-25 - CVE-2026-97965 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97965
Vulnerability Analysis
The vulnerability resides in the VXLAN transmit path within vxlan_xmit_one(). The function declares a local structure _md on the stack and assigns md = &_md as a default. The code then checks whether IP_TUNNEL_VXLAN_OPT_BIT is set in info->key.tun_flags. When the bit is set, md is redirected to ip_tunnel_info_opts(info), which contains valid metadata. When the bit is not set, md continues to point at the uninitialized _md stack variable.
Later in the transmit path, vxlan_build_skb() passes md to vxlan_build_gbp_hdr() when the VXLAN_F_GBP flag is active. The GBP builder reads md->gbp to populate fields in the outgoing VXLAN header, including dont_learn, policy_applied, and the 16-bit policy_id. Because the stack memory was never cleared, these fields receive attacker-visible kernel data.
Root Cause
The root cause is missing initialization of a stack-allocated structure prior to conditional assignment. The _md variable is used as a fallback pointer target but is never zeroed. This is a classic uninitialized memory use pattern [CWE-908]. The fix zero-initializes _md, ensuring that md->gbp is 0 when metadata options are absent and that vxlan_build_gbp_hdr() returns early without modifying the VXLAN header.
Attack Vector
Exploitation requires a VXLAN device configured with both VXLAN_F_COLLECT_METADATA and VXLAN_F_GBP. A local workload capable of injecting packets through such an interface with an external ip_tunnel_info lacking the IP_TUNNEL_VXLAN_OPT_BIT flag triggers the leak. The leaked kernel stack bytes are transmitted inside the VXLAN GBP header, where any receiver on the overlay network can observe them. The leaked data may include pointers, credentials, or other sensitive residue from prior kernel operations.
See the upstream fix in the Linux Kernel Commit for the exact patch.
Detection Methods for CVE-2026-97965
Indicators of Compromise
- Unexpected VXLAN_HF_GBP flag set in VXLAN headers originating from hosts that do not intentionally use GBP policies
- VXLAN GBP headers containing non-zero policy_id values on interfaces where no policy is configured
- Inconsistent dont_learn or policy_applied bits in captured VXLAN traffic across similar flows
Detection Strategies
- Capture VXLAN traffic with tcpdump or tshark and inspect GBP header fields for entropy that suggests leaked stack data
- Audit kernel versions across Linux hosts and compare against the fixed stable commits referenced by kernel.org
- Review VXLAN interface configurations for the combination of VXLAN_F_COLLECT_METADATA and VXLAN_F_GBP flags using ip -d link show
Monitoring Recommendations
- Centralize kernel version inventory for Linux fleet hosts and alert on versions missing the VXLAN GBP initialization patch
- Monitor VXLAN tunnel egress traffic for anomalous GBP header patterns using network telemetry pipelines
- Correlate container and orchestrator events with VXLAN interface creation, since overlay networks in Kubernetes often rely on VXLAN encapsulation
How to Mitigate CVE-2026-97965
Immediate Actions Required
- Apply the upstream Linux kernel patch that zero-initializes _md in vxlan_xmit_one() as soon as a vendor-supplied build is available
- Identify all hosts running VXLAN with GBP enabled and prioritize them for patching
- Review overlay network designs that forward VXLAN traffic across untrusted segments and treat captured GBP data as potentially sensitive until patched
Patch Information
The fix is available in the mainline and stable Linux kernel trees. Reference commits include 081f22177d9d, 0d13b5a413bf, be83178bfc44, and bfb74c48ac2d. Deploy distribution-provided kernel updates that incorporate these commits.
Workarounds
- Disable the VXLAN_F_GBP flag on affected VXLAN interfaces if GBP functionality is not required for network policy enforcement
- Avoid combining VXLAN_F_COLLECT_METADATA with VXLAN_F_GBP on hosts where senders cannot guarantee the IP_TUNNEL_VXLAN_OPT_BIT is set
- Restrict access to the receiving side of VXLAN overlays through network segmentation until patches are applied
# Inspect VXLAN interface flags to identify at-risk configurations
ip -d link show type vxlan
# Recreate a VXLAN interface without GBP as a temporary workaround
ip link del vxlan0
ip link add vxlan0 type vxlan id 100 dstport 4789 external
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

