dma-direct: return struct page from dma_direct_alloc_from_pool()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.110, 6.18.51, 7.2.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5b138c534fda57c2ebc1e6de72578aa1d70788a6 · fixed in 7801e616fbe3661f9471b2e9bfcb1ed35460bf16; From 5b138c534fda57c2ebc1e6de72578aa1d70788a6 · fixed in c3fdb94da43ff23287f85664174c45c45e881a3f; From 5b138c534fda57c2ebc1e6de72578aa1d70788a6 · fixed in 408ff2d5bf555bd3f4c84a2edb95c0690bf9edc8; From 5b138c534fda57c2ebc1e6de72578aa1d70788a6 · fixed in feeb2ef775081a6c188cdd10e7a45369a07ce531; From 5b138c534fda57c2ebc1e6de72578aa1d70788a6 · fixed in 94a04ad732c9f8b9554270fc4038a06737de5c22
- Linux Linux
5.10
- KernelLinux
From 5.10.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5