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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **Published:** 2024-05-21T15:32:07.937Z
- **Modified:** 2026-08-05T09:11:47.346Z

## Who should check

- Anyone running Linux \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< 2191950d35d8f81620ea8d4e04d983f664fe3a8a; \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< de4c5bacca4f50233f1f791bec9eeb4dee1b14cd; \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< 5d092b66119d774853cc9308522620299048a662
- Anyone running Linux 6.4

## 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.

## Affected and fixed versions

- Linux: \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< 2191950d35d8f81620ea8d4e04d983f664fe3a8a; \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< de4c5bacca4f50233f1f791bec9eeb4dee1b14cd; \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< 5d092b66119d774853cc9308522620299048a662 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 5d092b66119d774853cc9308522620299048a662 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52874. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52874.md
Affected: Linux >= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < 2191950d35d8f81620ea8d4e04d983f664fe3a8a; >= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < de4c5bacca4f50233f1f791bec9eeb4dee1b14cd; >= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < 5d092b66119d774853cc9308522620299048a662; Linux 6.4
Fixed in: Linux 2191950d35d8f81620ea8d4e04d983f664fe3a8a, Linux 5d092b66119d774853cc9308522620299048a662

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52874 being exploited?

There is no confirmed exploitation: CVE-2023-52874 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52874?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52874?

Linux \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< 2191950d35d8f81620ea8d4e04d983f664fe3a8a; \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< de4c5bacca4f50233f1f791bec9eeb4dee1b14cd; \>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, \< 5d092b66119d774853cc9308522620299048a662; Linux 6.4.

### Is there a fix for CVE-2023-52874?

Yes. Fixed in Linux 2191950d35d8f81620ea8d4e04d983f664fe3a8a, Linux 5d092b66119d774853cc9308522620299048a662. Upgrade Linux to 5d092b66119d774853cc9308522620299048a662 or later.

### How do I check if I'm affected by CVE-2023-52874?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52874>

HTML: <https://flawdb.com/CVE-2023-52874> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52874>
