Skip to content

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

CriticalCVSS 9.4 EPSS 0.14%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
Xen varstored All versions No fix listed
alpine/xen(Alpine:v3.20) < 0 No fix listed
alpine/xen(Alpine:v3.21) < 0 No fix listed
alpine/xen(Alpine:v3.22) < 0 No fix listed
alpine/xen(Alpine:v3.23) < 0 No fix listed
alpine/xen(Alpine:v3.24) < 0 No fix listed

References