CVE-2025-58151
varstored: TOCTOU issues with mapped guest memory
- State
- Published
- Severity
- 9.4 Critical
- Published
- Jul 9, 2026
- Updated
- Jul 9, 2026
- Reserved
- Aug 26, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 9.4 Critical | 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 | XEN |
Weaknesses
- CWE-367 Time-of-check time-of-use (TOCTOU) race condition
Affected Products
| Product | Versions |
|---|---|
varstoredXen |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.