Skip to content
Heist/ feed
Back to feed
CriticalFix available

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

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.8
CVEs
CVE-2024-57793
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 00:56 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 11 Jan 2025, 12:39 UTC

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

osv:CVE-2024-57793

Kernel

Fixed versions: 6.12.8

Complete source record
{
  "id": "b7e3e0ec34aadd2c86faa9183d74a76b2de9be9c4381998026a26033071d75aa",
  "url": "https://osv.dev/vulnerability/CVE-2024-57793",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "virt: tdx-guest: Just leak decrypted memory on unrecoverable errors",
    "summary": "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().",
    "evidence": "osv:CVE-2024-57793",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-57793",
      "aliases": [
        "CVE-2024-57793"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f4738f56d1dc62aaba69b33702a5ab098f1b8c63"
                },
                {
                  "fixed": "1429ae7b7d4759a1e362456b8911c701bae655b4"
                },
                {
                  "fixed": "27834971f616c5e154423c578fa95e0444444ce1"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57793.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57793.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.522685357Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1429ae7b7d4759a1e362456b8911c701bae655b4",
        "https://git.kernel.org/stable/c/27834971f616c5e154423c578fa95e0444444ce1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57793.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-57793",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57793.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-57793",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508793,
  "published_at": "2025-01-11T12:39:47.347+00:00"
}