Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-52874

HIGH 7.1EPSS 21%

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

Mitigation

  • Upgrade Linux to 5d092b66119d774853cc9308522620299048a662 or later.

Who should check

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

Vulnerability facts

Affected
Linux >= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < 2191950d35d8f81620ea8d4e04d983f664fe3a8a; >= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < de4c5bacca4f50233f1f791bec9eeb4dee1b14cd; >= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < 5d092b66119d774853cc9308522620299048a662; Linux 6.4
Fixed in
Linux 2191950d35d8f81620ea8d4e04d983f664fe3a8a, Linux 5d092b66119d774853cc9308522620299048a662
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < 2191950d35d8f81620ea8d4e04d983f664fe3a8a; >= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < de4c5bacca4f50233f1f791bec9eeb4dee1b14cd; >= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < 5d092b66119d774853cc9308522620299048a662—cvelist
Linux6.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors