[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025011150-CVE-2024-57793-4d57@gregkh>
Date: Sat, 11 Jan 2025 13:39:52 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2024-57793: virt: tdx-guest: Just leak decrypted memory on unrecoverable errors
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().
The Linux kernel CVE team has assigned CVE-2024-57793 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit f4738f56d1dc62aaba69b33702a5ab098f1b8c63 and fixed in 6.12.8 with commit 1429ae7b7d4759a1e362456b8911c701bae655b4
Issue introduced in 6.7 with commit f4738f56d1dc62aaba69b33702a5ab098f1b8c63 and fixed in 6.13-rc5 with commit 27834971f616c5e154423c578fa95e0444444ce1
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-57793
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/virt/coco/tdx-guest/tdx-guest.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/1429ae7b7d4759a1e362456b8911c701bae655b4
https://git.kernel.org/stable/c/27834971f616c5e154423c578fa95e0444444ce1
Powered by blists - more mailing lists