CVE-2024-35939

dma-direct: Leak pages on dma_set_decrypted() failure

HIGH
7.1
CVSS Score
Published: May 19, 2024 at 10:10 AM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.7.7v < 6.1.865.7.7 ≤ v < 5.85.8 ≤ v < 6.1.865.8 ≤ v < 6.6.275.8 ≤ v < 6.8.65.8 ≤ v < 6.96.2 ≤ v < 6.6.276.7 ≤ v < 6.8.65.7.75.856fccf21d1961a06e2a0c96ce446ebf03665106291c7b0407ca6a62c095d265f76926b67bf66c026
Vendor states this is fixed in 4031b72ca747a1e6e9ae4fa729e765b43363d66a (fixed)
Vendor states this is fixed in 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9 (fixed)
Vendor states this is fixed in b57326c96b7bc7638aa8c44e12afa2defe0c934c (fixed)
Vendor states this is fixed in b9fa16949d18e06bdf728a560f5c8af56d2bdcaf (fixed)
Vendor states this is fixed in 5.8 (unaffected)
Vendor states this is fixed in 6.1.86 (unaffected)
Vendor states this is fixed in 6.6.27 (unaffected)
Vendor states this is fixed in 6.8.6 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4031b72ca747a1e6e9ae4fa729e765b43363d66a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b57326c96b7bc7638aa8c44e12afa2defe0c934c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b9fa16949d18e06bdf728a560f5c8af56d2bdcaf

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card