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

tun: free page on short-frame rejection in tun_xdp_one()

tun_xdp_one() returns -EINVAL on a frame shorter than ETH_HLEN without
freeing the page that vhost_net_build_xdp() allocated for it.
tun_sendmsg() discards that -EINVAL and still returns total_len, so
vhost_tx_batch() takes the success path and never frees the page; each
short frame in a batch leaks one page-frag chunk.

A local process that can open /dev/net/tun and /dev/vhost-net can hit
this path: it attaches a tun/tap device as the vhost-net backend and
feeds TX descriptors whose length minus the virtio-net header is below
ETH_HLEN. Each kick leaks the page-frag chunks for that batch, and a
tight submission loop exhausts host memory and triggers an OOM panic.
Free the page before returning -EINVAL, matching the XDP-program error
path in the same function.
Published: 2026-06-09
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, the function tun_xdp_one() incorrectly handles frames that are shorter than the Ethernet header length. When such a frame is processed, the function allocates a page but, instead of freeing it before returning an error, it leaks the page fragment. With each short frame processed, another chunk of memory is allocated and never released, which can quickly consume available RAM.

Affected Systems

This flaw affects all Linux kernel releases that do not include the later patch that frees the page in the error path. According to the Common Platform Enumeration list, affected kernels include the 7.1 release candidates up to RC5; earlier stable releases are also vulnerable if the fix is not present. Any system that permits a local process to open /dev/net/tun and /dev/vhost-net and configure a tun/tap interface as a vhost‑net backend falls under this scope.

Risk and Exploitability

Based on the description, it is inferred that an attacker must have local write access to the tun and vhost‑net devices, which is typically available to any user on a machine with those devices exposed. The exploitation path involves repeatedly sending short frames to trigger the memory leak; a tight loop can exhaust host memory and cause an OOM panic. The EPSS score of less than 1% indicates a very low likelihood of mass exploitation, yet when it occurs it results in a severe local denial‑of‑service. The vulnerability is not listed in the CISA KEV catalog, but the high CVSS score of 7.1 and the potential for out‑of‑memory crashes make it a significant risk for systems that allow such local operations.

Generated by OpenCVE AI on August 13, 2026 at 20:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that implements the page‑freeing fix for tun_xdp_one()
  • Restrict access to the /dev/net/tun and /dev/vhost-net device nodes so that only trusted users or groups can create and manage tun devices
  • Deploy monitoring of system memory and OOM events to detect and respond to sudden memory exhaustion caused by the leak

Generated by OpenCVE AI on August 13, 2026 at 20:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4664-1 linux security update
Debian DLA Debian DLA DLA-4665-1 linux security update
Debian DLA Debian DLA DLA-4671-1 linux-6.1 security update
Debian DSA Debian DSA DSA-6355-1 linux security update
Ubuntu USN Ubuntu USN USN-8566-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8568-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
History

Fri, 19 Jun 2026 12:45:00 +0000


Sun, 14 Jun 2026 05:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H'}


Wed, 10 Jun 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-763
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Tue, 09 Jun 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tun: free page on short-frame rejection in tun_xdp_one() tun_xdp_one() returns -EINVAL on a frame shorter than ETH_HLEN without freeing the page that vhost_net_build_xdp() allocated for it. tun_sendmsg() discards that -EINVAL and still returns total_len, so vhost_tx_batch() takes the success path and never frees the page; each short frame in a batch leaks one page-frag chunk. A local process that can open /dev/net/tun and /dev/vhost-net can hit this path: it attaches a tun/tap device as the vhost-net backend and feeds TX descriptors whose length minus the virtio-net header is below ETH_HLEN. Each kick leaks the page-frag chunks for that batch, and a tight submission loop exhausts host memory and triggers an OOM panic. Free the page before returning -EINVAL, matching the XDP-program error path in the same function.
Title tun: free page on short-frame rejection in tun_xdp_one()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:31:16.239Z

Reserved: 2026-05-13T15:03:33.112Z

Link: CVE-2026-46321

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-06-09T13:16:37.473

Modified: 2026-07-23T08:10:00.137

Link: CVE-2026-46321

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-06-09T00:00:00Z

Links: CVE-2026-46321 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T20:30:02Z

Weaknesses