KernelScan.io

HIGH Introduced in 5.10

dma-direct PoolAlloc Corruption

CVE-2026-89995

CVSS 8.8 / 10.0 NVD

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

KernelScan AI7.7HIGH

01

In the Linux kernel, the following vulnerability has been resolved: dma-direct: return struct page from dma_direct_alloc_from_pool() Commit 5b138c534fda ("dma-direct: factor out a dma_direct_alloc_from_pool helper") changed dma_direct_alloc_from_pool() to return the CPU address from dma_alloc_from_pool(). That fits dma_direct_alloc(), but dma_direct_alloc_pages() also uses the helper and expects a struct page *. Fix this by making dma_direct_alloc_from_pool() return the struct page * again, and pass the CPU address back through an out-parameter for the dma_direct_alloc() caller.

02

Engine v0.6.0

Risk summary

A refactoring bug in the DMA direct allocation helper causes one caller to receive a CPU virtual address where it expects a page pointer, leading to type-confused memory access. Any local user who can trigger device DMA allocation under the affected conditions (typically memory-encryption environments requiring unencrypted DMA buffers with atomic allocation) can cause kernel memory corruption, likely resulting in a crash or potentially arbitrary read/write.

Affectedkernel/dma/direct.c (dma-direct)

Vulnerability analysis

A helper that allocates DMA memory from a pool was changed to return the CPU virtual address of the allocation, but one of its callers still expects a memory page reference in return. This type confusion causes the caller to interpret a kernel virtual address as a page reference, so any later translation from page to physical address uses the wrong value and corrupts kernel memory when used for DMA. The fix restores the helper so it returns the page reference again, and passes the CPU address back through a separate parameter for callers that need it. The bug is reached when a device driver performs an atomic DMA allocation in an environment that requires unencrypted DMA buffers, which a local user can trigger through device I/O.

03

BranchIntroducedFixed inPatch commit
6.15.106.1.1911ca96bbfef42
6.125.106.12.110c3fdb94da43f
6.185.106.18.51408ff2d5bf55
6.65.106.6.1607801e616fbe3
7.25.107.2.5feeb2ef77508
mainline5.107.394a04ad732c9
cip/6.125.106.12.111-cip32c3fdb94da43f

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)