sh: dma: Fix DMA channel offset calculation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7f47c7189b3e8f19a589f77a3ad169d7b691b582 · < 8fb11fa4805699c6b73a9c8a9d45807f9874abe3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
sh: dma: Fix DMA channel offset calculation
Various SoCs of the SH3, SH4 and SH4A family, which use this driver, feature a differing number of DMA channels, which can be distributed between up to two DMAC modules. The existing implementation fails to correctly accommodate for all those variations, resulting in wrong channel offset calculations and leading to kernel panics.
Rewrite dma_base_addr() in order to properly calculate channel offsets in a DMAC module. Fix dmaor_read_reg() and dmaor_write_reg(), so that the correct DMAC module base is selected for the DMAOR register.
From the CVE record · Linux
The Linux kernel SH DMA driver calculates channel offsets incorrectly on some SH3, SH4 and SH4A SoCs, which can lead to kernel panics. The input does not specify how the bug can be triggered, whether an attacker can exploit it, or whether access or user interaction is required.
Engineers running Linux on SH3, SH4 or SH4A SoCs that use the affected DMA driver should check their kernel; affected versions are not specified.