CVE-2024-35939 dma-direct: Leak pages on dma_set_decrypted() failure
An attacker can read sensitive data from shared memory pages if DMA decryption fails, requiring a patched Linux kernel.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-35939?
CVE-2024-35939 is a critical vulnerability in Linux kernel, published on 19 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
dma-direct: Leak pages on dma_set_decrypted() failure
On TDX it is possible for the untrusted host to cause set_memory_encrypted() or 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.
DMA could free decrypted/shared pages if dma_set_decrypted() fails. This should be a rare case. Just leak the pages in this case instead of freeing them.
Which versions are affected by CVE-2024-35939?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-35939?
Apply the vendor's patch.
Is CVE-2024-35939 being exploited?
There is no known exploitation of CVE-2024-35939 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-67752, BELL-CVE-2024-35939, DEBIAN-CVE-2024-35939, GHSA-jqww-7hvv-r9xf, ROOT-OS-DEBIAN-11-CVE-2024-35939, ROOT-OS-UBUNTU-2204-CVE-2024-35939 and 1 more.