← back
CVE-2025-27465

x86: Incorrect stubs exception handling for flags recovery

CVSS 4.3 MEDIUMEPSS 0.6%CWE-755
In short

Xen hypervisor incorrectly handles exceptions when replaying certain x86 instructions that need to recover arithmetic flags, treating recoverable errors as fatal crashes instead of handling them gracefully.

Technical detail

CWE-755 vulnerability in Xen's stub-based instruction emulation where exception metadata is misconfigured for replayed instructions with flags recovery logic, causing unhandled exceptions to terminate the system instead of being caught and processed by exception handlers. Affects x86 platforms running Xen when specific instruction patterns trigger both exception conditions and flags recovery requirements.

Summary generated and translated by AI from the official description.
Certain instructions need intercepting and emulating by Xen. In some cases Xen emulates the instruction by replaying it, using an executable stub. Some instructions may raise an exception, which is supposed to be handled gracefully. Certain replayed instructions have additional logic to set up and recover the changes to the arithmetic flags. For replayed instructions where the flags recovery logic is used, the metadata for exception handling was incorrect, preventing Xen from handling the the exception gracefully, treating it as fatal instead.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Affected products
Xen · Xen

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →