AZL-117160: CVE-2026-139461 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
dma-direct: Restore archdmaalloc() for the DMAATTRNOKERNELMAPPING case
Commit 849facea92fa ("dma-direct: simplify the DMAATTRNOKERNELMAPPING handling") moved the DMAATTRNOKERNELMAPPING shortcut in dmadirectalloc() in front of the archdmaalloc() call. Architectures providing their own DMA coherent allocator (CONFIGARCHHASDMAALLOC) therefore no longer see such requests. ARM 32bit is one of such. Lack of the call to archdmaalloc() 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 archdmaalloc(). While touching this, move that check into separate function to avoid duplication in alloc and free paths.
Affected Software
Event History
Frequently Asked Questions
Which systems are most likely to be affected?
The issue is relevant to 32-bit ARM systems and other architectures that provide their own DMA coherent allocator through CONFIG_ARCH_HAS_DMA_ALLOC. The affected path requires DMA allocations using DMA_ATTR_NO_KERNEL_MAPPING.
What condition triggers the faulty allocation path?
The problem occurs when DMA_ATTR_NO_KERNEL_MAPPING causes dma_direct_alloc() to bypass the architecture-specific arch_dma_alloc() handler. On affected architectures, this bypass can omit required cache management for HighMem pages.
What behavior distinguishes the corrected handling?
The DMA-direct shortcut for DMA_ATTR_NO_KERNEL_MAPPING is restricted to coherent devices or architectures that do not provide arch_dma_alloc(). Architectures with their own allocator retain the architecture-specific allocation and cache-management path.