9.3critical
dma-direct: Leak pages on dma_set_decrypted() failure
- Severity
- 9.3critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.34% (higher than 20% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 56fccf21d1961a06e2a0c96ce446ebf036651062 before 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9, from 56fccf21d1961a06e2a0c96ce446ebf036651062 before 4031b72ca747a1e6e9ae4fa729e765b43363d66a, from 56fccf21d1961a06e2a0c96ce446ebf036651062 before b57326c96b7bc7638aa8c44e12afa2defe0c934c, from 56fccf21d1961a06e2a0c96ce446ebf036651062 before b9fa16949d18e06bdf728a560f5c8af56d2bdcaf, 91c7b0407ca6a62c095d265f76926b67bf66c026, from 5.7.7 before 5.8, 5.8 Not affected: before 5.8, from 6.1.86 up to 6.1.*, from 6.6.27 up to 6.6.*, from 6.8.6 up to 6.8.*, from 6.9 up to * | CVE List |
| linux linux_kernel | before 6.1.86, from 6.2 before 6.6.27, from 6.7 before 6.8.6 | NVD |
All scores
| Linux | 9.3critical CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: dma-direct: páginas filtradas en el fallo de dma_set_decrypted() En TDX es posible que el host que no es de confianza provoque que set_memory_encrypted() o set_memory_decrypted() falle de modo que se devuelva un error y la memoria resultante se comparte. Las personas que llaman deben tener cuidado al manejar estos errores para evitar devolver memoria descifrada (compartida) al asignador de páginas, lo que podría provocar problemas funcionales o de seguridad. DMA podría liberar páginas descifradas/compartidas si dma_set_decrypted() falla. Este debería ser un caso raro. En este caso, simplemente filtre las páginas en lugar de liberarlas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-35939 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-35939 changed 2026-08-04 | Public domain |