Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139461

dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 849facea92fa68d9292f9b06d7c4ee9e7a06b8dc to < ac033c450bf8e6efc9acf2c54b6cbfb0266cd34baffected
  • 849facea92fa68d9292f9b06d7c4ee9e7a06b8dc to < 34644966b0b48e476aa1fc629361e73eff6aecebaffected
  • 849facea92fa68d9292f9b06d7c4ee9e7a06b8dc to < 8cd4e521b74cad199c668e1fae0ef459b316c7c4affected
  • 849facea92fa68d9292f9b06d7c4ee9e7a06b8dc to < 5e3bc6b44c8853bcc7782eac122c5baf2d02f399affected

Linux Linux

Default version status: affected

  • 5.10affected
  • 0 to < 5.10unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References