CVE-2024-35939

dma-direct: Leak pages on dma_set_decrypted() failure

State
Published
Severity
9.3 Critical
Published
May 19, 2024
Updated
Aug 5, 2026
Reserved
May 17, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.3 CriticalCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 56fccf21d1961a06e2a0c96ce446ebf036651062 to before 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9Affected
  • 56fccf21d1961a06e2a0c96ce446ebf036651062 to before 4031b72ca747a1e6e9ae4fa729e765b43363d66aAffected
  • 56fccf21d1961a06e2a0c96ce446ebf036651062 to before b57326c96b7bc7638aa8c44e12afa2defe0c934cAffected
  • 56fccf21d1961a06e2a0c96ce446ebf036651062 to before b9fa16949d18e06bdf728a560f5c8af56d2bdcafAffected
  • 91c7b0407ca6a62c095d265f76926b67bf66c026Affected
  • 5.7.7 to before 5.8Affected
LinuxLinux
  • 5.8Affected
  • before 5.8Not affected
  • 6.1.86 through 6.1.*Not affected
  • 6.6.27 through 6.6.*Not affected
  • 6.8.6 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.