# CVE-2025-58151: varstored: TOCTOU issues with mapped guest memory

- Severity: Critical 9.4 (CVSS:4.0, scored by XEN) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-02)
- Published: 2026-07-09T14:45:16.531Z
- Modified: 2026-09-29T19:10:00.160Z
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: XEN

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

(As written by CVE List.)

## Affected

- Xen varstored: all

## References

- <https://xenbits.xen.org/xsa/advisory-478.html>
- <http://www.openwall.com/lists/oss-security/2026/01/27/2>
- <http://xenbits.xen.org/xsa/advisory-478.html>

## Sources

- CVE List: [CVE-2025-58151](https://www.cve.org/CVERecord?id=CVE-2025-58151), CVE Terms of Use, modified 2026-07-09
- NVD: [CVE-2025-58151](https://nvd.nist.gov/vuln/detail/CVE-2025-58151), Public domain, modified 2026-09-29

---

Page: https://cve.day/CVE-2025-58151 · Whole record: https://cve.day/CVE-2025-58151.json · Rebuilt by cve.day 2026-11-25T22:59:12.390Z
