CVE-2024-57793 virt: tdx-guest: Just leak decrypted memory on unrecoverable errors
An attacker can read decrypted memory in Intel TDX guest VMs if the host causes memory decryption to fail, leading to information disclosure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-57793?
CVE-2024-57793 is a critical vulnerability in Linux kernel, published on 11 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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().
Weakness: CWE-401
Which versions are affected by CVE-2024-57793?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-57793?
Apply the vendor's patch.
Is CVE-2024-57793 being exploited?
There is no known exploitation of CVE-2024-57793 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-57793, DEBIAN-CVE-2024-57793, GHSA-v6qq-2p53-438j, UBUNTU-CVE-2024-57793.