misc: fastrpc: fix DMA address corruption due to find_vma misuse
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 80f3afd72bd4149c57daf852905476b43bb47647 · < 53e06f8a3c2b085c31bf1284e2ebcb8036e99625| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
misc: fastrpc: fix DMA address corruption due to find_vma misuse
fastrpc_get_args() uses find_vma() to look up the VMA for a user-provided pointer and compute a DMA address offset. When the address falls in a gap before the returned VMA, (ptr & PAGE_MASK) - vma->vm_start underflows, corrupting the DMA address sent to the DSP.
Replace find_vma() with vma_lookup(), which returns NULL when the address is not contained within any VMA.
From the CVE record · Linux
The Linux kernel's fastrpc_get_args() can compute an incorrect DMA address when a user-provided pointer falls in a gap before the VMA returned by find_vma(). The corrupted DMA address is then sent to the DSP. This requires a locally supplied pointer; the input does not specify whether authentication is required.
Engineers running Linux kernels with fastrpc should check their versions against the vendor advisory; affected versions were not provided.