CVE-2024-35939

dma-direct: Leak pages on dma_set_decrypted() failure

At a glance

Severity
CRITICAL 9.3
EPSS
EPSS 0.22 % · percentile 13 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.3CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.3CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 56fccf21d1961a06e2a0c96ce446ebf036651062 < 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9 ; affected 56fccf21d1961a06e2a0c96ce446ebf036651062 < 4031b72ca747a1e6e9ae4fa729e765b43363d66a ; affected 56fccf21d1961a06e2a0c96ce446ebf036651062 < b57326c96b7bc7638aa8c44e12afa2defe0c934c ; affected 56fccf21d1961a06e2a0c96ce446ebf036651062 < b9fa16949d18e06bdf728a560f5c8af56d2bdcaf ; affected 91c7b0407ca6a62c095d265f76926b67bf66c026 ; affected 5.7.7 < 5.8
Linux · Linuxaffected 5.8 ; unaffected 0 < 5.8 ; unaffected 6.1.86 ≤ 6.1.* ; unaffected 6.6.27 ≤ 6.6.* ; unaffected 6.8.6 ≤ 6.8.* ; unaffected 6.9 ≤ *

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD