Time-of-Check to Time-of-Use Vulnerability in Xapi Toolstack for UEFI Variables
CVE-2025-58151

9.4CRITICAL

Key Information:

Status
Vendor
CVE Published:
9 July 2026

Key facts: CVE-2025-58151 is a critical severity (CVSS 9.4) vulnerability in Xen Project varstored Linux. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 0.1%, the estimated probability of exploitation in the next 30 days.

What is CVE-2025-58151?

The Xapi toolstack's varstored component, which manages UEFI Variables for virtual machines, exhibits a significant vulnerability due to inadequate compiler barriers. This oversight leads to Time-of-Check to Time-of-Use (TOCTOU) issues, allowing malicious actors to manipulate a jump table index under certain circumstances. The vulnerability's impact is contingent on the specific code compiled within varstored, particularly when default settings are applied, creating an avenue for unauthorized access that could compromise the integrity of virtual machine environments.

Affected Version(s)

varstored Linux all

References

Browse all analysed vulnerabilities ›

CVSS V4

Score:
9.4
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

This issue was discovered by Teddy Astie of Vates.
.