# CVE-2023-52874: x86/tdx: Zero out the missing RSI in TDX_HYPERCALL macro

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-02)
- Published: 2024-05-21T15:32:07.937Z
- Modified: 2026-08-05T09:11:47.346Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

x86/tdx: Zero out the missing RSI in TDX_HYPERCALL macro

In the TDX_HYPERCALL asm, after the TDCALL instruction returns from the
untrusted VMM, the registers that the TDX guest shares to the VMM need
to be cleared to avoid speculative execution of VMM-provided values.

RSI is specified in the bitmap of those registers, but it is missing
when zeroing out those registers in the current TDX_HYPERCALL.

It was there when it was originally added in commit 752d13305c78
("x86/tdx: Expand __tdx_hypercall() to handle more arguments"), but was
later removed in commit 1e70c680375a ("x86/tdx: Do not corrupt
frame-pointer in __tdx_hypercall()"), which was correct because %rsi is
later restored in the "pop %rsi".  However a later commit 7a3a401874be
("x86/tdx: Drop flags from __tdx_hypercall()") removed that "pop %rsi"
but forgot to add the "xor %rsi, %rsi" back.

Fix by adding it back.

(As written by CVE List.)

## Affected

- Linux Linux: from 7a3a401874bea02f568aa416ac29170d8cde0dc2 before 2191950d35d8f81620ea8d4e04d983f664fe3a8a; from 7a3a401874bea02f568aa416ac29170d8cde0dc2 before de4c5bacca4f50233f1f791bec9eeb4dee1b14cd; from 7a3a401874bea02f568aa416ac29170d8cde0dc2 before 5d092b66119d774853cc9308522620299048a662; 6.4 (not affected: before 6.4; from 6.5.12 up to 6.5.*; from 6.6.2 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 6.4 before 6.5.12; from 6.6 before 6.6.2

## Every score

- Linux: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://git.kernel.org/stable/c/2191950d35d8f81620ea8d4e04d983f664fe3a8a> (patch)
- <https://git.kernel.org/stable/c/de4c5bacca4f50233f1f791bec9eeb4dee1b14cd> (patch)
- <https://git.kernel.org/stable/c/5d092b66119d774853cc9308522620299048a662> (patch)

## Sources

- CVE List: [CVE-2023-52874](https://www.cve.org/CVERecord?id=CVE-2023-52874), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52874](https://nvd.nist.gov/vuln/detail/CVE-2023-52874), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52874 · Whole record: https://cve.day/CVE-2023-52874.json · Rebuilt by cve.day 2026-11-25T22:58:34.066Z
