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

varstored, the component of the Xapi toolstack responsible for handling UEFI variables for virtual machines, contains a time‑of‑check to time‑of‑use flaw caused by missing compiler barriers. The flaw arises when varstored maps a buffer prepared by the guest’s OVMF firmware; due to insufficient ordering guarantees, a malicious guest can manipulate an index used in an internal jump table. The result is the ability to execute arbitrary code in the host context, compromising the integrity and confidentiality of the Xen host.

Affected Systems

The affected product is Xen varstored as part of the Xapi toolstack. Any build compiled with default compiler settings may be vulnerable; no specific version numbers are disclosed, so any Xen host that includes varstored is potentially impacted.

Risk and Exploitability

The CVSS score of 9.4 indicates a critical risk. The EPSS score of less than 1% suggests a low probability of exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The attack is likely triggered from a malicious guest that writes to the UEFI variable interface, exploiting the shared buffer to alter the jump‑table index. Successful exploitation would grant host‑level code execution, allowing the attacker to take full control of the hypervisor.

Generated by OpenCVE AI on July 29, 2026 at 12:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Check the Xen project’s website or advisories for an available patch or update that addresses the compiler barrier issue in varstored.
  • Until a patch is released, consider recompiling varstored with stricter compiler options or modifying the source to eliminate the vulnerable jump‑table logic, if resources allow.
  • Restrict or disable UEFI variable access for untrusted VMs by adjusting Xapi or Xen configuration to prevent guests from writing potentially malicious data to the shared buffer.

Generated by OpenCVE AI on July 29, 2026 at 12:22 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

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T12:30:03Z

Weaknesses
  • CWE-367

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