CVE-2023-52874
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
21/05/2024
Last modified:
26/09/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
x86/tdx: Zero out the missing RSI in TDX_HYPERCALL macro<br />
<br />
In the TDX_HYPERCALL asm, after the TDCALL instruction returns from the<br />
untrusted VMM, the registers that the TDX guest shares to the VMM need<br />
to be cleared to avoid speculative execution of VMM-provided values.<br />
<br />
RSI is specified in the bitmap of those registers, but it is missing<br />
when zeroing out those registers in the current TDX_HYPERCALL.<br />
<br />
It was there when it was originally added in commit 752d13305c78<br />
("x86/tdx: Expand __tdx_hypercall() to handle more arguments"), but was<br />
later removed in commit 1e70c680375a ("x86/tdx: Do not corrupt<br />
frame-pointer in __tdx_hypercall()"), which was correct because %rsi is<br />
later restored in the "pop %rsi". However a later commit 7a3a401874be<br />
("x86/tdx: Drop flags from __tdx_hypercall()") removed that "pop %rsi"<br />
but forgot to add the "xor %rsi, %rsi" back.<br />
<br />
Fix by adding it back.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.4 (including) | 6.5.12 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6 (including) | 6.6.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/2191950d35d8f81620ea8d4e04d983f664fe3a8a
- https://git.kernel.org/stable/c/5d092b66119d774853cc9308522620299048a662
- https://git.kernel.org/stable/c/de4c5bacca4f50233f1f791bec9eeb4dee1b14cd
- https://git.kernel.org/stable/c/2191950d35d8f81620ea8d4e04d983f664fe3a8a
- https://git.kernel.org/stable/c/5d092b66119d774853cc9308522620299048a662
- https://git.kernel.org/stable/c/de4c5bacca4f50233f1f791bec9eeb4dee1b14cd



