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

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

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