CVE-2024-35939

Critical

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.

SeverityCritical
CVSS9.3
Exploit probability—
ProductLinux Kernel
PublishedMay 19, 2024
First seenMay 19, 2024

How to fix

Update
  • linux linux_kernel6.1.86, 6.6.27, 6.8.6 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernelv < 6.1.86, 6.2 ≤ v < 6.6.27, 6.7 ≤ v < 6.8.66.1.86, 6.6.27, 6.8.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.