virt: tdx-guest: Just leak decrypted memory on unrecoverable errors
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
In CoCo VMs, an untrusted host can cause set_memory_decrypted() to fail while leaving the affected memory shared. If the TDX guest returns that memory to the page allocator, it could cause functional or security issues. The input does not describe a need for guest user interaction.
Operators running Linux kernel TDX guests in CoCo VMs should check their kernel versions; affected versions are not specified.