{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2023-54255",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-12-30T12:06:44.515Z",
        "datePublished": "2025-12-30T12:15:50.822Z",
        "dateUpdated": "2026-05-11T19:58:27.430Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T19:58:27.430Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "arch/sh/drivers/dma/dma-sh.c"
                    ],
                    "versions": [
                        {
                            "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                            "lessThan": "bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                            "lessThan": "479380acfa63247b5ac62476138f847aefc62692",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                            "lessThan": "4989627157735c1f1619f08e5bc1592418e7c878",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                            "lessThan": "d1c946552af299f4fa85bf7da15e328123771128",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                            "lessThan": "196f6c71905aa384c0177acf194a1144d480333b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                            "lessThan": "8fb11fa4805699c6b73a9c8a9d45807f9874abe3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                            "lessThan": "e9e33faea104381bac80ac79328f0540fc2969f2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                            "lessThan": "e82e47584847129a20b8c9f4a1dcde09374fb0e0",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "arch/sh/drivers/dma/dma-sh.c"
                    ],
                    "versions": [
                        {
                            "version": "3.5",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.5",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.322",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.291",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.251",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.188",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.121",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.39",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.4.4",
                            "lessThanOrEqual": "6.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.5",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.5",
                                    "versionEndExcluding": "4.14.322"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.5",
                                    "versionEndExcluding": "4.19.291"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.5",
                                    "versionEndExcluding": "5.4.251"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.5",
                                    "versionEndExcluding": "5.10.188"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.5",
                                    "versionEndExcluding": "5.15.121"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.5",
                                    "versionEndExcluding": "6.1.39"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.5",
                                    "versionEndExcluding": "6.4.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.5",
                                    "versionEndExcluding": "6.5"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad"
                },
                {
                    "url": "https://git.kernel.org/stable/c/479380acfa63247b5ac62476138f847aefc62692"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4989627157735c1f1619f08e5bc1592418e7c878"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d1c946552af299f4fa85bf7da15e328123771128"
                },
                {
                    "url": "https://git.kernel.org/stable/c/196f6c71905aa384c0177acf194a1144d480333b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8fb11fa4805699c6b73a9c8a9d45807f9874abe3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e9e33faea104381bac80ac79328f0540fc2969f2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e82e47584847129a20b8c9f4a1dcde09374fb0e0"
                }
            ],
            "title": "sh: dma: Fix DMA channel offset calculation",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}