VDB

CVE-2024-35939

CVE-2024-35939 PUBLISHED CVSS 9.3 CRITICAL

dma-direct: Leak pages on dma_set_decrypted() failure

Reported by linux · Published May 19, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.8.6, 6.6.27, 6.1.86
LinuxLinuxb9fa16949d18e06bdf728a560f5c8af56d2bdcaf, b57326c96b7bc7638aa8c44e12afa2defe0c934c, 5.8, 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9, 4031b72ca747a1e6e9ae4fa729e765b43363d66a

Risk scores

CVSS 3.1
9.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux56fccf21d1961a06e2a0c96ce446ebf036651062, 56fccf21d1961a06e2a0c96ce446ebf036651062, 56fccf21d1961a06e2a0c96ce446ebf036651062
LinuxLinux5.8, 0, 6.1.86
LinuxLinux5.7.7, 6.8.6, 6.9
linuxlinux_kernel5.7.7, 5.8, 5.8

Timeline

  • May 19, 2024 CVE Published
  • May 20, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
  • Jan 10, 2026 Security Advisory (436 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (331 in total, the first dated here)
  • Aug 5, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-35939
vulnetix vdb fixes CVE-2024-35939

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35939/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›