CVE-2024-35939

published 19 May 2024 · updated 17 Nov 2026

dma-direct: Leak pages on dma_set_decrypted() failure

9.3CriticalCVSS 9.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel b9fa16949d18e06bdf728a560f5c8af56d2bdcaf, Kernel 5.8, Kernel 4031b72ca747a1e6e9ae4fa729e765b43363d66a and 5 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=56fccf21d1961a06e2a0c96ce446ebf036651062 <b9fa16949d18e06bdf728a560f5c8af56d2bdcaf, >=5.7.7 <5.8, >=56fccf21d1961a06e2a0c96ce446ebf036651062 <4031b72ca747a1e6e9ae4fa729e765b43363d66a, >=56fccf21d1961a06e2a0c96ce446ebf036651062 <4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9, >=56fccf21d1961a06e2a0c96ce446ebf036651062 <b57326c96b7bc7638aa8c44e12afa2defe0c934c, =5.8, =91c7b0407ca6a62c095d265f76926b67bf66c026b9fa16949d18e06bdf728a560f5c8af56d2bdcaf, 5.8, 4031b72ca747a1e6e9ae4fa729e765b43363d66a, 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9, b57326c96b7bc7638aa8c44e12afa2defe0c934c
linux-kernel: Kernel>=5.8.0 <6.1.86, >=6.2.0 <6.6.27, >=6.7.0 <6.8.6, >=5.7.7 <5.86.1.86, 6.6.27, 6.8.6, 5.8

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-35939 severity on Zeptric[![CVE-2024-35939](https://zeptric.io/badge/cve/CVE-2024-35939.svg)](https://zeptric.io/cve/CVE-2024-35939)