{"id":"CVE-2023-54255","aliases":["CVE-2023-54255"],"related":[],"kind":"vulnerability","state":"published","title":"sh: dma: Fix DMA channel offset calculation","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsh: dma: Fix DMA channel offset calculation\n\nVarious SoCs of the SH3, SH4 and SH4A family, which use this driver,\nfeature a differing number of DMA channels, which can be distributed\nbetween up to two DMAC modules. The existing implementation fails to\ncorrectly accommodate for all those variations, resulting in wrong\nchannel offset calculations and leading to kernel panics.\n\nRewrite dma_base_addr() in order to properly calculate channel offsets\nin a DMAC module. Fix dmaor_read_reg() and dmaor_write_reg(), so that\nthe correct DMAC module base is selected for the DMAOR register.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsh: dma: Fix DMA channel offset calculation\n\nVarious SoCs of the SH3, SH4 and SH4A family, which use this driver,\nfeature a differing number of DMA channels, which can be distributed\nbetween up to two DMAC modules. The existing implementation fails to\ncorrectly accommodate for all those variations, resulting in wrong\nchannel offset calculations and leading to kernel panics.\n\nRewrite dma_base_addr() in order to properly calculate channel offsets\nin a DMAC module. Fix dmaor_read_reg() and dmaor_write_reg(), so that\nthe correct DMAC module base is selected for the DMAOR register.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsh: dma: Corrección del cálculo del desplazamiento del canal DMA\n\nVarios 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.\n\nReescribir 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.","source":"nvd"}],"published":"2025-12-30T12:15:50.822Z","modified":"2026-06-17T06:47:06.227Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7f47c7189b3e8f19a589f77a3ad169d7b691b582","fixed":"bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad","status":"affected"},{"type":"git","introduced":"7f47c7189b3e8f19a589f77a3ad169d7b691b582","fixed":"479380acfa63247b5ac62476138f847aefc62692","status":"affected"},{"type":"git","introduced":"7f47c7189b3e8f19a589f77a3ad169d7b691b582","fixed":"4989627157735c1f1619f08e5bc1592418e7c878","status":"affected"},{"type":"git","introduced":"7f47c7189b3e8f19a589f77a3ad169d7b691b582","fixed":"d1c946552af299f4fa85bf7da15e328123771128","status":"affected"},{"type":"git","introduced":"7f47c7189b3e8f19a589f77a3ad169d7b691b582","fixed":"196f6c71905aa384c0177acf194a1144d480333b","status":"affected"},{"type":"git","introduced":"7f47c7189b3e8f19a589f77a3ad169d7b691b582","fixed":"8fb11fa4805699c6b73a9c8a9d45807f9874abe3","status":"affected"},{"type":"git","introduced":"7f47c7189b3e8f19a589f77a3ad169d7b691b582","fixed":"e9e33faea104381bac80ac79328f0540fc2969f2","status":"affected"},{"type":"git","introduced":"7f47c7189b3e8f19a589f77a3ad169d7b691b582","fixed":"e82e47584847129a20b8c9f4a1dcde09374fb0e0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.5","status":"unaffected"},{"type":"semver","introduced":"4.14.322","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.291","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.251","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.188","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.121","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.39","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.4","lastAffected":"6.4.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.5","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/479380acfa63247b5ac62476138f847aefc62692","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4989627157735c1f1619f08e5bc1592418e7c878","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d1c946552af299f4fa85bf7da15e328123771128","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/196f6c71905aa384c0177acf194a1144d480333b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8fb11fa4805699c6b73a9c8a9d45807f9874abe3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9e33faea104381bac80ac79328f0540fc2969f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e82e47584847129a20b8c9f4a1dcde09374fb0e0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54255","url":"https://www.cve.org/CVERecord?id=CVE-2023-54255","licence":"CVE Terms of Use","modified":"2026-05-11T19:58:27.430Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54255","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54255","licence":"Public domain","modified":"2026-06-17T06:47:06.227Z"}],"updatedAt":"2026-11-25T22:58:35.245Z","epss":{"score":0.00291,"percentile":0.14203,"date":"2026-11-30T12:00:22.000Z"}}