CVE-2024-57793

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

State
Published
Severity
9.3 Critical
Published
Jan 11, 2025
Updated
Oct 15, 2026
Reserved
Jan 11, 2025

Read the record on cve.org

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().

Scores

CVSSScoreVectorSource
3.19.3 CriticalCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f4738f56d1dc62aaba69b33702a5ab098f1b8c63 to before 1429ae7b7d4759a1e362456b8911c701bae655b4Affected
  • f4738f56d1dc62aaba69b33702a5ab098f1b8c63 to before 27834971f616c5e154423c578fa95e0444444ce1Affected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.12.8 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.