Skip to content
CVE PROGRAM SOURCE RECORD9.3 Critical

CVE-2024-35939

dma-direct: Leak pages on dma_set_decrypted() failure

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 56fccf21d1961a06e2a0c96ce446ebf036651062 to < 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9affected
  • 56fccf21d1961a06e2a0c96ce446ebf036651062 to < 4031b72ca747a1e6e9ae4fa729e765b43363d66aaffected
  • 56fccf21d1961a06e2a0c96ce446ebf036651062 to < b57326c96b7bc7638aa8c44e12afa2defe0c934caffected
  • 56fccf21d1961a06e2a0c96ce446ebf036651062 to < b9fa16949d18e06bdf728a560f5c8af56d2bdcafaffected
  • 91c7b0407ca6a62c095d265f76926b67bf66c026affected
  • 5.7.7 to < 5.8affected

Linux Linux

Default version status: affected

  • 5.8affected
  • 0 to < 5.8unaffected
  • 6.1.86 to ≤ 6.1.*unaffected
  • 6.6.27 to ≤ 6.6.*unaffected
  • 6.8.6 to ≤ 6.8.*unaffected
  • 6.9 to ≤ *unaffected

References