{"id":"CVE-2025-58151","aliases":["CVE-2025-58151"],"related":[],"kind":"vulnerability","state":"published","title":"varstored: TOCTOU issues with mapped guest memory","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"varstored es un componente de la pila de herramientas Xapi que gestiona las variables UEFI para una VM. Tiene una ruta de comunicación con OVMF dentro de la VM que implica el mapeo de un búfer preparado por OVMF.\n\nDentro de varstored, había barreras de compilador insuficientes, creando problemas TOCTOU con los datos en el búfer compartido.\n\nEl comportamiento vulnerable exacto depende del código generado por el compilador. En una compilación de varstored utilizando la configuración predeterminada, el atacante puede controlar un índice utilizado en una tabla de salto.","source":"nvd"}],"published":"2026-07-09T14:45:16.531Z","modified":"2026-09-29T19:10:00.160Z","severity":{"scorer":"XEN","scheme":"CVSS: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","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"XEN","scheme":"CVSS: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","score":9.4,"rating":"CRITICAL"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"version":"all","status":"affected"}],"vendor":"Xen","product":"varstored","platforms":["Linux"],"source":"cvelist"}],"references":[{"url":"https://xenbits.xen.org/xsa/advisory-478.html","tags":[],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/01/27/2","tags":[],"sources":["cvelist","nvd"]},{"url":"http://xenbits.xen.org/xsa/advisory-478.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["This issue was discovered by Teddy Astie of Vates."],"assigner":"XEN","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-09T15:40:36.292Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58151","url":"https://www.cve.org/CVERecord?id=CVE-2025-58151","licence":"CVE Terms of Use","modified":"2026-07-09T15:41:25.431Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58151","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58151","licence":"Public domain","modified":"2026-09-29T19:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:12.390Z","epss":{"score":0.0012,"percentile":0.01973,"date":"2026-12-02T12:00:21.000Z"}}