Not scored
sh: dma: Fix DMA channel offset calculation
- Severity
- Not scored
- Exploit likelihood
- 0.29% (higher than 14% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7f47c7189b3e8f19a589f77a3ad169d7b691b582 before bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad, from 7f47c7189b3e8f19a589f77a3ad169d7b691b582 before 479380acfa63247b5ac62476138f847aefc62692, from 7f47c7189b3e8f19a589f77a3ad169d7b691b582 before 4989627157735c1f1619f08e5bc1592418e7c878, from 7f47c7189b3e8f19a589f77a3ad169d7b691b582 before d1c946552af299f4fa85bf7da15e328123771128, from 7f47c7189b3e8f19a589f77a3ad169d7b691b582 before 196f6c71905aa384c0177acf194a1144d480333b, from 7f47c7189b3e8f19a589f77a3ad169d7b691b582 before 8fb11fa4805699c6b73a9c8a9d45807f9874abe3, from 7f47c7189b3e8f19a589f77a3ad169d7b691b582 before e9e33faea104381bac80ac79328f0540fc2969f2, from 7f47c7189b3e8f19a589f77a3ad169d7b691b582 before e82e47584847129a20b8c9f4a1dcde09374fb0e0 and 1 more Not affected: before 3.5, from 4.14.322 up to 4.14.*, from 4.19.291 up to 4.19.*, from 5.4.251 up to 5.4.*, from 5.10.188 up to 5.10.*, from 5.15.121 up to 5.15.* | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: sh: dma: Corrección del cálculo del desplazamiento del canal DMA Varios SoCs de la familia SH3, SH4 y SH4A, que utilizan este controlador, presentan un número diferente de canales DMA, que pueden distribuirse entre hasta dos módulos DMAC. La implementación existente no logra adaptarse correctamente a todas esas variaciones, lo que resulta en cálculos de desplazamiento de canal incorrectos y conduce a pánicos del kernel. Reescribir dma_base_addr() para calcular correctamente los desplazamientos de canal en un módulo DMAC. Corregir dmaor_read_reg() y dmaor_write_reg(), para que se seleccione la base correcta del módulo DMAC para el registro DMAOR.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54255 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-54255 changed 2026-06-17 | Public domain |