dma-direct: return struct page from dma_direct_alloc_from_pool()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1ca96bbfef42bbfb139cc6eb1d940c8ca9046f95, Kernel 408ff2d5bf555bd3f4c84a2edb95c0690bf9edc8, Kernel 7801e616fbe3661f9471b2e9bfcb1ed35460bf16 and 3 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.10, >=5b138c534fda57c2ebc1e6de72578aa1d70788a6 <1ca96bbfef42bbfb139cc6eb1d940c8ca9046f95, >=5b138c534fda57c2ebc1e6de72578aa1d70788a6 <408ff2d5bf555bd3f4c84a2edb95c0690bf9edc8, >=5b138c534fda57c2ebc1e6de72578aa1d70788a6 <7801e616fbe3661f9471b2e9bfcb1ed35460bf16, >=5b138c534fda57c2ebc1e6de72578aa1d70788a6 <94a04ad732c9f8b9554270fc4038a06737de5c22, >=5b138c534fda57c2ebc1e6de72578aa1d70788a6 <c3fdb94da43ff23287f85664174c45c45e881a3f, >=5b138c534fda57c2ebc1e6de72578aa1d70788a6 <feeb2ef775081a6c188cdd10e7a45369a07ce531 | 1ca96bbfef42bbfb139cc6eb1d940c8ca9046f95, 408ff2d5bf555bd3f4c84a2edb95c0690bf9edc8, 7801e616fbe3661f9471b2e9bfcb1ed35460bf16, 94a04ad732c9f8b9554270fc4038a06737de5c22, c3fdb94da43ff23287f85664174c45c45e881a3f, feeb2ef775081a6c188cdd10e7a45369a07ce531 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket