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.
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
5b138c534fda57c2ebc1e6de72578aa1d70788a6 to < 7801e616fbe3661f9471b2e9bfcb1ed35460bf16affected5b138c534fda57c2ebc1e6de72578aa1d70788a6 to < c3fdb94da43ff23287f85664174c45c45e881a3faffected5b138c534fda57c2ebc1e6de72578aa1d70788a6 to < 408ff2d5bf555bd3f4c84a2edb95c0690bf9edc8affected5b138c534fda57c2ebc1e6de72578aa1d70788a6 to < feeb2ef775081a6c188cdd10e7a45369a07ce531affected5b138c534fda57c2ebc1e6de72578aa1d70788a6 to < 94a04ad732c9f8b9554270fc4038a06737de5c22affected
Linux Linux
Default version status: affected
5.10affected0 to < 5.10unaffected6.6.160 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.51 to ≤ 6.18.*unaffected7.2.5 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7801e616fbe3661f9471b2e9bfcb1ed35460bf16 ↗
- 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 ↗