CVE-2026-89995: dma-direct: return struct page from dma_direct_alloc_from_pool()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-89995 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit 5b138c534fda57c2ebc1e6de72578aa1d70788a6 and fixed in 6.12.110 with commit c3fdb94da43ff23287f85664174c45c45e881a3f Issue introduced in 5.10 with commit 5b138c534fda57c2ebc1e6de72578aa1d70788a6 and fixed in 6.18.51 with commit 408ff2d5bf555bd3f4c84a2edb95c0690bf9edc8 Issue introduced in 5.10 with commit 5b138c534fda57c2ebc1e6de72578aa1d70788a6 and fixed in 7.2.5 with commit feeb2ef775081a6c188cdd10e7a45369a07ce531 Issue introduced in 5.10 with commit 5b138c534fda57c2ebc1e6de72578aa1d70788a6 and fixed in 7.3-rc1 with commit 94a04ad732c9f8b9554270fc4038a06737de5c22
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89995
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
kernel/dma/direct.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/c3fdb94da43ff23287f85664174c45c45e881a3f https://git.kernel.org/stable/c/408ff2d5bf555bd3f4c84a2edb95c0690bf9edc8 https://git.kernel.org/stable/c/feeb2ef775081a6c188cdd10e7a45369a07ce531 https://git.kernel.org/stable/c/94a04ad732c9f8b9554270fc4038a06737de5c22