Menu

Star on GitHub · 3.4k

CVE-2023-52874

7.1 · HIGH

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 th…

Published May 21, 2024EPSS 0.26%

Overview

CVE-2023-52874 is a high-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2023-52874?

CVE-2023-52874 is a high-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2023-52874?

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2023-52874?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-52874?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2023-52874 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2023

View all
Watch the demo →