CVE-2024-35939
dma-direct: Leak pages on dma_set_decrypted() failure
Mitigation
- Upgrade Linux to 5.8 or later.
Who should check
- Anyone running Linux >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4031b72ca747a1e6e9ae4fa729e765b43363d66a; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b57326c96b7bc7638aa8c44e12afa2defe0c934c; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b9fa16949d18e06bdf728a560f5c8af56d2bdcaf; 91c7b0407ca6a62c095d265f76926b67bf66c026; >= 5.7.7, < 5.8
- Anyone running Linux 5.8
Vulnerability facts
- Affected
- Linux >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4031b72ca747a1e6e9ae4fa729e765b43363d66a; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b57326c96b7bc7638aa8c44e12afa2defe0c934c; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b9fa16949d18e06bdf728a560f5c8af56d2bdcaf; 91c7b0407ca6a62c095d265f76926b67bf66c026; >= 5.7.7, < 5.8; Linux 5.8
- Fixed in
- Linux 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9, Linux 4031b72ca747a1e6e9ae4fa729e765b43363d66a, Linux 5.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 9.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
- 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4031b72ca747a1e6e9ae4fa729e765b43363d66a; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b57326c96b7bc7638aa8c44e12afa2defe0c934c; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b9fa16949d18e06bdf728a560f5c8af56d2bdcaf; 91c7b0407ca6a62c095d265f76926b67bf66c026; >= 5.7.7, < 5.8 | — | cvelist |
| Linux | 5.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-35939. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-35939.md Affected: Linux >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4031b72ca747a1e6e9ae4fa729e765b43363d66a; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b57326c96b7bc7638aa8c44e12afa2defe0c934c; >= 56fccf21d1961a06e2a0c96… Fixed in: Linux 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9, Linux 4031b72ca747a1e6e9ae4fa729e765b43363d66a, Linux 5.8 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2024-35939 being exploited?
There is no confirmed exploitation: CVE-2024-35939 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-35939?
Critical: CVSS 9.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-35939?
Linux >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < 4031b72ca747a1e6e9ae4fa729e765b43363d66a; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b57326c96b7bc7638aa8c44e12afa2defe0c934c; >= 56fccf21d1961a06e2a0c96ce446ebf036651062, < b9fa16949d18e06bdf728a560f5c8af56d2bdcaf; 91c7b0407ca6a62c095d265f76926b67bf66c026; >= 5.7.7, < 5.8; Linux 5.8.
Is there a fix for CVE-2024-35939?
Yes. Fixed in Linux 4e0cfb25d49da2e6261ad582f58ffa5b5dd8c8e9, Linux 4031b72ca747a1e6e9ae4fa729e765b43363d66a, Linux 5.8. Upgrade Linux to 5.8 or later.
How do I check if I'm affected by CVE-2024-35939?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.