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
Share

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

Primary rating from NVD.

CVSS VectorNVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
Analysis Generated
Jul 08, 2026 - 19:25 vuln.today
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.

AnalysisAI

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. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

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

Vulnerability AssessmentAI

Exploitation 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. … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment Real-world risk is moderate-low. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario 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. …
Remediation Update to a patched kernel version: Linux 7.1, 6.18.36, or 7.0.13 as applicable to your stable series. … Detailed patch versions, workarounds, and compensating controls in full report.

Threat intelligence, references, and detailed analysis are available after sign-in.

Share

CVE-2026-52940 vulnerability details – vuln.today

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