Skip to main content

Linux Kernel CVE-2026-52940

| EUVDEUVD-2026-38710 MEDIUM
2026-06-24 Linux GHSA-7mf5-pgq8-jhcp
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local user session on Linux system
  2. Delivery
    Open /dev/net/tun and create TUN interface
  3. Exploit
    Call TUNSETVNETHDRSZ(24) to enable full 24-byte header
  4. Execution
    Read non-tunnel packets from TUN device
  5. Persist
    Receive 14 bytes of uninitialized kernel stack in vnet header fields
  6. Impact
    Analyze leaked bytes for kernel pointer extraction enabling KASLR bypass

Vulnerability Assessment

Exploitation Conditions

The attacker must have local system access and the ability to open and configure a TUN device, which requires either CAP_NET_ADMIN capability, group membership granting /dev/net/tun read/write access, or a container runtime explicitly granting TUN capability. The attacker must explicitly invoke the TUNSETVNETHDRSZ ioctl with value 24 to enable 24-byte vnet headers - the default vnet header size is 10 bytes, so the leak does not occur in default, unmodified TUN configurations. The vulnerable code path is triggered only when reading non-tunnel (non-tunneled skb) packets through the device. Exploitation is strictly limited to AV:L (local system access); there is no remote vector. The disclosure is read-passive: it requires no packet injection, only reading from the TUN file descriptor.

Impact

Real-world risk is moderate-low. The provided CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, score 5.5) contains a significant metric inconsistency: the vulnerability is an information disclosure, not a denial-of-service or availability impact. The A:H and C:N assignment in the input vector appears to be an error - the description exclusively describes leaking kernel stack bytes to userspace with no availability or integrity component. The independently assessed vector corrects this to C:H/I:N/A:N (see assessed_cvss_vector). EPSS at 0.15% (5th percentile) and absence from CISA KEV confirm no observed exploitation. The AV:L constraint is a meaningful barrier: exploitation requires a local session with TUN device access, limiting the attack surface to multi-tenant Linux systems, VPN environments, or container runtimes that grant TUN capability. A 14-byte kernel stack leak per read carries KASLR bypass potential when chained with a follow-on local privilege escalation, but is not directly critical in isolation.

Exploit ScenarioDerived

A local unprivileged user with TUN device access opens /dev/net/tun, creates a TUN interface, and issues TUNSETVNETHDRSZ with value 24 to activate 24-byte vnet headers. On each subsequent read of a non-tunnel packet, the returned vnet header contains 14 bytes of uninitialized kernel stack content. Repeated reads allow the attacker to sample kernel stack bytes - potentially recovering kernel text or heap pointers - usable as an information primitive in a staged local privilege escalation chain. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

Kernel stack memory disclosure in the Linux TUN driver exposes 14 bytes of uninitialized stack data to unprivileged local users on every read of a non-tunnel packet. The flaw affects Linux systems where a local user can open a TUN device and issue the TUNSETVNETHDRSZ ioctl to set the vnet header size to 24 bytes. No public exploit or active exploitation has been identified; EPSS is 0.15% (5th percentile), consistent with a local-only information disclosure requiring deliberate TUN device configuration.

RemediationAI

Update to a patched kernel version: Linux 7.1, 6.18.36, or 7.0.13 as applicable to your stable series. The upstream fix zeroes the virtio_net_hdr_v1_hash_tunnel struct immediately after declaration in tun_put_user(), mirroring the initialization already present in tun_get_user(). Fix commits are available at https://git.kernel.org/stable/c/5fd1fa5a4254bfdd70571c77f5e3bcb4e43738d5, https://git.kernel.org/stable/c/585cb85e9a29185be05f326369573c2663cf4380, and https://git.kernel.org/stable/c/7f2fcff15e99bb852f6967396ed12b38376e2c8d. Where patching is not immediately feasible, restrict unprivileged access to TUN devices by tightening /dev/net/tun permissions or restricting CAP_NET_ADMIN to trusted processes; this trades off user-space VPN and container networking functionality but removes the ability for unprivileged users to call TUNSETVNETHDRSZ and trigger the leak path.

Affected VersionsENISA

Linux 288f30435132d2f9e7a29ec9b9745a4f9dc7fd37 <5fd1fa5a4254bfdd70571c77f5e3bcb4e43738d5
Linux patch: 7.1
Linux 6.17
Linux 288f30435132d2f9e7a29ec9b9745a4f9dc7fd37 <585cb85e9a29185be05f326369573c2663cf4380
Linux patch: 6.18.36
Linux patch: 7.0.13
Linux patch: 0
Linux 288f30435132d2f9e7a29ec9b9745a4f9dc7fd37 <7f2fcff15e99bb852f6967396ed12b38376e2c8d

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in tun_put_user() within the Linux kernel TUN/TAP virtual network driver. An on-stack struct virtio_net_hdr_v1_hash_tunnel (24 bytes total) is declared without zero-initialization. For non-tunnel skbs, virtio_net_hdr_tnl_from_skb() initializes only the first 10 bytes (the base struct virtio_net_hdr), leaving bytes 10-23 - the num_buffers field and the hash/tunnel extension fields - as uninitialized kernel stack memory. When an unprivileged process calls TUNSETVNETHDRSZ with value 24 to enable 24-byte vnet headers, __tun_vnet_hdr_put() copies the full 24-byte struct to userspace on each packet read, leaking 14 bytes of kernel stack per read. The root cause is a missing initialization of the on-stack structure, analogous to CWE-909 (Missing Initialization of Resource). The fix mirrors the pattern already used in the sibling function tun_get_user(), which zeroes the header after declaration. CPE data identifies the affected product as cpe:2.3:a:linux:linux.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local access with low privileges required; sole real-world impact is kernel stack confidentiality disclosure; no integrity or availability effect present.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 7.0 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 08, 2026 - 19:22 NVD
5.5 (MEDIUM)
Patch available
Jun 24, 2026 - 09:16 EUVD
CVE Published
Jun 24, 2026 - 07:14 nvd
MEDIUM 5.5
CVE Published
Jun 24, 2026 - 07:14 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

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

tun: zero the whole vnet header in tun_put_user()

tun_put_user() declares an on-stack struct virtio_net_hdr_v1_hash_tunnel without zeroing it. For a non-tunnel skb, virtio_net_hdr_tnl_from_skb() only initializes the first 10 bytes (sizeof(struct virtio_net_hdr)), leaving bytes 10..23 (num_buffers and the hash/tunnel fields) as stack garbage.

An unprivileged user can set the vnet header size to 24 with TUNSETVNETHDRSZ, so __tun_vnet_hdr_put() copies all 24 bytes of the partially-initialized struct to userspace, leaking 14 bytes of kernel stack on every read of a non-tunnel packet.

Fix it the same way tun_get_user() already does by zeroing the whole header right after declaration.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Ubiquitous
Linux kernel deployed across virtually all server, cloud, and container environments
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy