What’s Vulnerable › Vulnerabilities
CVE-2024-57793: virt: tdx-guest: Just leak decrypted memory on unrecoverable errors
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-01-11 · updated 2026-10-15
- Weakness: CWE-401
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().
Affected products
- Linux kernel: from 6.7 before 6.12.8; 6.13-rc1, 6.13-rc2, 6.13-rc3, 6.13-rc4 — fixed in 6.12.8
How to fix
Upgrade to a fixed version: Linux kernel 6.12.8. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1429ae7b7d4759a1e362456b8911c701bae655b4
- https://git.kernel.org/stable/c/27834971f616c5e154423c578fa95e0444444ce1
Get alerted when CVE-2024-57793 or the next vulnerability affects your stack