dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case
Commit 849facea92fa ("dma-direct: simplify the DMA_ATTR_NO_KERNEL_MAPPING handling") moved the DMA_ATTR_NO_KERNEL_MAPPING shortcut in dma_direct_alloc() in front of the arch_dma_alloc() call. Architectures providing their own DMA coherent allocator (CONFIG_ARCH_HAS_DMA_ALLOC) therefore no longer see such requests. ARM 32bit is one of such. Lack of the call to arch_dma_alloc() results in the lack of proper cache management on HighMem pages.
Take the dma-direct shortcut only for coherent devices or when the architecture doesn't provide arch_dma_alloc(). While touching this, move that check into separate function to avoid duplication in alloc and free paths.
| Product | Versions |
|---|---|
| Linux Linux | 849facea92fa68d9292f9b06d7c4ee9e7a06b8dc to before ac033c450bf8e6efc9acf2c54b6cbfb0266cd34b Affected849facea92fa68d9292f9b06d7c4ee9e7a06b8dc to before 34644966b0b48e476aa1fc629361e73eff6aeceb Affected849facea92fa68d9292f9b06d7c4ee9e7a06b8dc to before 8cd4e521b74cad199c668e1fae0ef459b316c7c4 Affected849facea92fa68d9292f9b06d7c4ee9e7a06b8dc to before 5e3bc6b44c8853bcc7782eac122c5baf2d02f399 Affected |
| Linux Linux | 5.10 Affectedbefore 5.10 Not Affected6.12.120 through 6.12.* Not Affected6.18.66 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.