Description
varstored is a component of the Xapi toolstack handling UEFI Variables
for a VM. It has a communication path with OVMF inside the VM involving
mapping a buffer prepared by OVMF.

Within varstored, there were insufficient compiler barriers, creating
TOCTOU issues with data in the shared buffer.

The exact vulnerable behaviour depends on the code generated by the
compiler. In a build of varstored using default settings, the attacker
can control an index used in a jump table.
Published: 2026-07-09
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The weakness, a time‑of‑check to time‑of‑use flaw (CWE‑367), exists in the Xen varstored component of the Xapi toolstack. varstored handles UEFI variable communication between a guest’s OVMF firmware and the host. Insufficient compiler barriers allow a malicious guest to race the shared buffer, controlling an index into an internal jump table and enabling the execution of arbitrary code in the host context, thereby compromising the confidentiality, integrity, and availability of the hypervisor.

Affected Systems

The affected product is Xen varstored as part of the Xapi toolstack. Any Xen host that includes varstored compiled with default compiler settings may be vulnerable; the flaw depends on the presence of the shared buffer used by OVMF for UEFI variable handling. All such hosts, regardless of Xen version, are potentially impacted if no patch has been applied.

Risk and Exploitability

The CVSS score of 9.4 indicates a critical risk, while the EPSS score of less than 1% suggests a low probability of active exploitation at present. The vulnerability is not listed in the CISA KEV catalog. An attacker is likely to have control over a virtual machine, and by writing malicious data to the UEFI variable interface, can exploit the TOCTOU race in varstored to plant a crafted index. If successful, host‑level code execution is achieved, giving the attacker full control of the hypervisor.

Generated by OpenCVE AI on August 3, 2026 at 04:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the Xenvarstored patch listed in the Xenbits advisory‑478, which adds compiler barriers to eliminate the TOCTOU flaw.
  • Restart the Xen hypervisor so that the updated varstored module loads, ensuring the fix is active.
  • If a patch is not yet applied, restrict UEFI variable handling for untrusted VMs by disabling the varstored service in Xapi or by configuring the hypervisor to reject writes to the UEFI variable interface.

Generated by OpenCVE AI on August 3, 2026 at 04:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Xen
Xen varstored
Vendors & Products Xen
Xen varstored

Thu, 09 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 09 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
Description varstored is a component of the Xapi toolstack handling UEFI Variables for a VM. It has a communication path with OVMF inside the VM involving mapping a buffer prepared by OVMF. Within varstored, there were insufficient compiler barriers, creating TOCTOU issues with data in the shared buffer. The exact vulnerable behaviour depends on the code generated by the compiler. In a build of varstored using default settings, the attacker can control an index used in a jump table.
Title varstored: TOCTOU issues with mapped guest memory
Weaknesses CWE-367
References
Metrics cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: XEN

Published:

Updated: 2026-07-09T15:41:25.431Z

Reserved: 2025-08-26T06:48:41.444Z

Link: CVE-2025-58151

cve-icon Vulnrichment

Updated: 2026-07-09T15:05:08.753Z

cve-icon NVD

Status : Deferred

Published: 2026-07-09T16:16:33.817

Modified: 2026-07-09T17:16:56.770

Link: CVE-2025-58151

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T04:30:18Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition