CVE Database›Document archive›CVE-2024-57793

CVE-2024-57793

kernel: virt: tdx-guest: Just leak decrypted memory on unrecoverable errors

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · January 11, 2025

Updated · October 30, 2026

Description

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

virt: tdx-guest: Just leak decrypted memory on unrecoverable errors

In CoCo VMs it is possible for the untrusted host to cause set_memory_decrypted() to fail such that an error is returned and the resulting memory is shared. Callers need to take care to handle these errors to avoid returning decrypted (shared) memory to the page allocator, which could lead to functional or security issues.

Leak the decrypted memory when set_memory_decrypted() fails, and don't need to print an error since set_memory_decrypted() will call WARN_ONCE().

Statement

This vulnerability is rated as Moderate impact for Red Hat Enterprise Linux because exploitation requires a specialized Confidential Computing deployment running as an Intel TDX guest on an untrusted hypervisor. Standard bare-metal systems, container hosts, and virtual machines not operating under Intel Trust Domain Extensions are unaffected by this flaw. Within TDX guests, hypervisor-induced failures during memory decryption could leave unencrypted memory exposed to the page allocator, potentially compromising guest confidentiality or causing system instability.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-755 · Improper Handling of Exceptional Conditions