CVE-2025-58151
published critical CVSS 4.0 · 9.4varstored: TOCTOU issues with mapped guest memory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Xen | — | varstoredall · Other versions: unaffected · Platforms: Linux | Affected | Not stated | XEN |
| Alpine Linux | edge | xen | Fixed | 0 | Package fix record |
| Alpine Linux | v3.20 | xen | Fixed | 0 | Package fix record |
| Alpine Linux | v3.21 | xen | Fixed | 0 | Package fix record |
| Alpine Linux | v3.22 | xen | Fixed | 0 | Package fix record |
| Alpine Linux | v3.23 | xen | Fixed | 0 | Package fix record |
| Alpine Linux | v3.24 | xen | Fixed | 0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.4 / 10
- Severity
- critical
- Provider
- XEN · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Xen | varstored | all (affected)Default: unaffected | XEN · cna |
Weaknesses
1- CWE-367 CWE-367 Time-of-check time-of-use (TOCTOU) race condition
References
3Provider assertions
3XEN · cna
varstored: TOCTOU issues with mapped guest memory
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 11362f21e9bf9157256cc48aae3119c7cb30eb3e38bccca65126235b4d7221da
- Ingested
- 23 Sep 2026, 08:53:54 UTC
- Source record
- Official CVE record