CVE-2023-54255 (GCVE-0-2023-54255)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:15 – Updated: 2026-05-11 19:58
VLAI
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.
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7018 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 7f47c7189b3e8f19a589f77a3ad169d7b691b582 , < bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad (git)
Affected: 7f47c7189b3e8f19a589f77a3ad169d7b691b582 , < 479380acfa63247b5ac62476138f847aefc62692 (git)
Affected: 7f47c7189b3e8f19a589f77a3ad169d7b691b582 , < 4989627157735c1f1619f08e5bc1592418e7c878 (git)
Affected: 7f47c7189b3e8f19a589f77a3ad169d7b691b582 , < d1c946552af299f4fa85bf7da15e328123771128 (git)
Affected: 7f47c7189b3e8f19a589f77a3ad169d7b691b582 , < 196f6c71905aa384c0177acf194a1144d480333b (git)
Affected: 7f47c7189b3e8f19a589f77a3ad169d7b691b582 , < 8fb11fa4805699c6b73a9c8a9d45807f9874abe3 (git)
Affected: 7f47c7189b3e8f19a589f77a3ad169d7b691b582 , < e9e33faea104381bac80ac79328f0540fc2969f2 (git)
Affected: 7f47c7189b3e8f19a589f77a3ad169d7b691b582 , < e82e47584847129a20b8c9f4a1dcde09374fb0e0 (git)
guessed Create a notification for this product.
Linux Linux Affected: 3.5
Unaffected: 0 , < 3.5 (semver)
Unaffected: 4.14.322 , ≤ 4.14.* (semver)
Unaffected: 4.19.291 , ≤ 4.19.* (semver)
Unaffected: 5.4.251 , ≤ 5.4.* (semver)
Unaffected: 5.10.188 , ≤ 5.10.* (semver)
Unaffected: 5.15.121 , ≤ 5.15.* (semver)
Unaffected: 6.1.39 , ≤ 6.1.* (semver)
Unaffected: 6.4.4 , ≤ 6.4.* (semver)
Unaffected: 6.5 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/sh/drivers/dma/dma-sh.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad",
              "status": "affected",
              "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
              "versionType": "git"
            },
            {
              "lessThan": "479380acfa63247b5ac62476138f847aefc62692",
              "status": "affected",
              "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
              "versionType": "git"
            },
            {
              "lessThan": "4989627157735c1f1619f08e5bc1592418e7c878",
              "status": "affected",
              "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
              "versionType": "git"
            },
            {
              "lessThan": "d1c946552af299f4fa85bf7da15e328123771128",
              "status": "affected",
              "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
              "versionType": "git"
            },
            {
              "lessThan": "196f6c71905aa384c0177acf194a1144d480333b",
              "status": "affected",
              "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
              "versionType": "git"
            },
            {
              "lessThan": "8fb11fa4805699c6b73a9c8a9d45807f9874abe3",
              "status": "affected",
              "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
              "versionType": "git"
            },
            {
              "lessThan": "e9e33faea104381bac80ac79328f0540fc2969f2",
              "status": "affected",
              "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
              "versionType": "git"
            },
            {
              "lessThan": "e82e47584847129a20b8c9f4a1dcde09374fb0e0",
              "status": "affected",
              "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/sh/drivers/dma/dma-sh.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.5"
            },
            {
              "lessThan": "3.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.322",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.291",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.251",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.188",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.121",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.39",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.4.*",
              "status": "unaffected",
              "version": "6.4.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.5",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.322",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.291",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.251",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.188",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.121",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.39",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.4",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5",
                  "versionStartIncluding": "3.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:58:27.430Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54255",
    "datePublished": "2025-12-30T12:15:50.822Z",
    "dateReserved": "2025-12-30T12:06:44.515Z",
    "dateUpdated": "2026-05-11T19:58:27.430Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2023-54255",
      "date": "2026-11-01",
      "epss": "0.0021",
      "percentile": "0.11216"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "arch/sh/drivers/dma/dma-sh.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad",
                    "status": "affected",
                    "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "479380acfa63247b5ac62476138f847aefc62692",
                    "status": "affected",
                    "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4989627157735c1f1619f08e5bc1592418e7c878",
                    "status": "affected",
                    "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "d1c946552af299f4fa85bf7da15e328123771128",
                    "status": "affected",
                    "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "196f6c71905aa384c0177acf194a1144d480333b",
                    "status": "affected",
                    "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "8fb11fa4805699c6b73a9c8a9d45807f9874abe3",
                    "status": "affected",
                    "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e9e33faea104381bac80ac79328f0540fc2969f2",
                    "status": "affected",
                    "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e82e47584847129a20b8c9f4a1dcde09374fb0e0",
                    "status": "affected",
                    "version": "7f47c7189b3e8f19a589f77a3ad169d7b691b582",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "arch/sh/drivers/dma/dma-sh.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "3.5"
                  },
                  {
                    "lessThan": "3.5",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.14.*",
                    "status": "unaffected",
                    "version": "4.14.322",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.19.*",
                    "status": "unaffected",
                    "version": "4.19.291",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.4.*",
                    "status": "unaffected",
                    "version": "5.4.251",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.188",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.121",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.39",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.4.*",
                    "status": "unaffected",
                    "version": "6.4.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.5",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsh: dma: Correcci\u00f3n del c\u00e1lculo del desplazamiento del canal DMA\n\nVarios SoCs de la familia SH3, SH4 y SH4A, que utilizan este controlador, presentan un n\u00famero diferente de canales DMA, que pueden distribuirse entre hasta dos m\u00f3dulos DMAC. La implementaci\u00f3n existente no logra adaptarse correctamente a todas esas variaciones, lo que resulta en c\u00e1lculos de desplazamiento de canal incorrectos y conduce a p\u00e1nicos del kernel.\n\nReescribir dma_base_addr() para calcular correctamente los desplazamientos de canal en un m\u00f3dulo DMAC. Corregir dmaor_read_reg() y dmaor_write_reg(), para que se seleccione la base correcta del m\u00f3dulo DMAC para el registro DMAOR."
          }
        ],
        "id": "CVE-2023-54255",
        "lastModified": "2026-06-17T06:47:06.227",
        "metrics": {},
        "published": "2025-12-30T13:16:14.217",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/196f6c71905aa384c0177acf194a1144d480333b"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/479380acfa63247b5ac62476138f847aefc62692"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4989627157735c1f1619f08e5bc1592418e7c878"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/8fb11fa4805699c6b73a9c8a9d45807f9874abe3"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/bca700b48c72f4ffeee977a2ed0eb4a6b4b7b8ad"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/d1c946552af299f4fa85bf7da15e328123771128"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e82e47584847129a20b8c9f4a1dcde09374fb0e0"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e9e33faea104381bac80ac79328f0540fc2969f2"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:29:47+00:00",
      "cve": "CVE-2023-54255",
      "id": "CVE-2023-54255",
      "initial_release_date": "2023-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: sh: dma: Fix DMA channel offset calculation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-54255.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.