sh: dma: Fix DMA channel offset calculation
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.322, 4.19.291, 5.10.188, 5.15.121, 5.4.251, 6.1.39, 6.4.4
- CVEs
- CVE-2023-54255
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:30 UTC · Revision 1
Source evidence
sh: dma: Fix DMA channel offset calculation
core-osv · Original sourcePublished 30 Dec 2025, 12:15 UTC
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.
osv:CVE-2023-54255
Kernel
Fixed versions: 4.14.322, 4.19.291, 5.4.251, 5.10.188, 5.15.121, 6.1.39, 6.4.4
Complete source record
{
"id": "30a570d440d95fd74fb9bc3f9a1a8524444e6975a95db48e18225e7c27eafa04",
"url": "https://osv.dev/vulnerability/CVE-2023-54255",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "sh: dma: Fix DMA channel offset calculation",
"summary": "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.",
"evidence": "osv:CVE-2023-54255",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.322",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.291",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.251",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.188",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.121",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.39",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-54255",
"aliases": [
"CVE-2023-54255"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "7f47c7189b3e8f19a589f77a3ad169d7b691b582"
},
{
"fixed": "bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad"
},
{
"fixed": "479380acfa63247b5ac62476138f847aefc62692"
},
{
"fixed": "4989627157735c1f1619f08e5bc1592418e7c878"
},
{
"fixed": "d1c946552af299f4fa85bf7da15e328123771128"
},
{
"fixed": "196f6c71905aa384c0177acf194a1144d480333b"
},
{
"fixed": "8fb11fa4805699c6b73a9c8a9d45807f9874abe3"
},
{
"fixed": "e9e33faea104381bac80ac79328f0540fc2969f2"
},
{
"fixed": "e82e47584847129a20b8c9f4a1dcde09374fb0e0"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54255.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.5.0"
},
{
"fixed": "4.14.322"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.291"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.251"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.188"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.121"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.39"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.4.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54255.json"
}
}
],
"modified": "2026-10-28T02:30:49.718441375Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/196f6c71905aa384c0177acf194a1144d480333b",
"https://git.kernel.org/stable/c/479380acfa63247b5ac62476138f847aefc62692",
"https://git.kernel.org/stable/c/4989627157735c1f1619f08e5bc1592418e7c878",
"https://git.kernel.org/stable/c/8fb11fa4805699c6b73a9c8a9d45807f9874abe3",
"https://git.kernel.org/stable/c/bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad",
"https://git.kernel.org/stable/c/d1c946552af299f4fa85bf7da15e328123771128",
"https://git.kernel.org/stable/c/e82e47584847129a20b8c9f4a1dcde09374fb0e0",
"https://git.kernel.org/stable/c/e9e33faea104381bac80ac79328f0540fc2969f2",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54255.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-54255",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54255.json"
}
},
"related_cves": [
{
"value": "CVE-2023-54255",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 518145,
"published_at": "2025-12-30T12:15:50.822+00:00"
}