CVE-2024-35939

High

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.

Package Linux Kernel
Published 2024-05-19
Last modified 2025-09-24
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

7.1

out of 10
High
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Affected versions

Linux kernel versions 5.7.7, 5.8 and later are affected. Fixed in 6.1.86, 6.6.27, 6.8.6, 6.9 and their respective stable series.

Affected from
≥ 5.7.7 ≥ 5.8
Fixed in
✓ 6.1.86 6.1.x ✓ 6.6.27 6.6.x ✓ 6.8.6 6.8.x ✓ 6.9

Frequently asked questions

  • What is CVE-2024-35939?

    CVE-2024-35939 is a High severity Linux kernel vulnerability with a CVSS score of 7.1 out of 10 . It affects Linux kernel versions from 5.7.7 onward and has been patched in 6.1.86, 6.6.27, 6.8.6 and others. CVE-2024-35939 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2024-35939?

    CVE-2024-35939 has a CVSS score of 7.1 out of 10, rated High severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H .

  • Is there a patch available for CVE-2024-35939?

    Yes. CVE-2024-35939 has been patched. Fixed versions include 6.1.86, 6.6.27, 6.8.6 and others. If you are running Linux kernel 5.7.7 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2024-35939 actively exploited?

    No. CVE-2024-35939 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.