{"id":"CVE-2025-58151","published":"2026-07-09T14:45:16Z","modified":"2026-07-09T15:41:25Z","title":"varstored: TOCTOU issues with mapped guest memory","vendor":"Xen","product":"varstored","tier":"tail","description":{"text":"varstored is a component of the Xapi toolstack handling UEFI Variables\nfor a VM.  It has a communication path with OVMF inside the VM involving\nmapping a buffer prepared by OVMF.\n\nWithin varstored, there were insufficient compiler barriers, creating\nTOCTOU issues with data in the shared buffer.\n\nThe exact vulnerable behaviour depends on the code generated by the\ncompiler.  In a build of varstored using default settings, the attacker\ncan control an index used in a jump table.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00137,"percentile":0.03214,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://xenbits.xen.org/xsa/advisory-478.html","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2026/01/27/2","tags":[]},{"url":"http://xenbits.xen.org/xsa/advisory-478.html","tags":[]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":0.64},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"xen","affectedVersions":[{"vendor":"Xen","product":"varstored","versions":["all"]}],"capec":[{"id":"CAPEC-233","name":"Privilege Escalation"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-09T15:40:36.292177Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-210447","exploited":false,"provenance":"source"}}