← Back to CVE Explorer

CVE-2026-98298

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: dmaengine: mmp_pdma: fix wrong sg length in mmp_pdma_prep_slave_sg() In mmp_pdma_prep_slave_sg(), for_each_sg() iterates the scatterlist putting each entry into 'sg', but the entry length is read from 'sgl' (the list head) instead of 'sg' (the current entry): for_each_sg(sgl, sg, sg_len, i) { addr = sg_dma_address(sg); avail = sg_dma_len(sgl); /* should be 'sg' */ Consequently 'avail' is always the length of the first entry. For multi-sg lists this causes out-of-bounds reads when a later entry is shorter than the first, and silent data loss when it is longer. Single-sg or uniformly-sized lists happen to mask the issue.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-10-06 09:18:20.537000
Last modified
2026-10-19 10:18:31.620000
View original CVE JSON
{
  "id": "CVE-2026-98298",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-10-06T09:18:20.537",
  "lastModified": "2026-10-19T10:18:31.620",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: mmp_pdma: fix wrong sg length in mmp_pdma_prep_slave_sg()\n\nIn mmp_pdma_prep_slave_sg(), for_each_sg() iterates the scatterlist\nputting each entry into 'sg', but the entry length is read from 'sgl'\n(the list head) instead of 'sg' (the current entry):\n\n    for_each_sg(sgl, sg, sg_len, i) {\n        addr = sg_dma_address(sg);\n        avail = sg_dma_len(sgl);   /* should be 'sg' */\n\nConsequently 'avail' is always the length of the first entry. For\nmulti-sg lists this causes out-of-bounds reads when a later entry is\nshorter than the first, and silent data loss when it is longer.\nSingle-sg or uniformly-sized lists happen to mask the issue."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/dma/mmp_pdma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "c8acd6aa6bed3c0fd7898202f4ebc534db9085f2",
              "lessThan": "f448a5f5bd10d792440a1b08cf2e8f311767032d",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c8acd6aa6bed3c0fd7898202f4ebc534db9085f2",
              "lessThan": "2148db529f082d6e3ca95413bf943442f4ef30cc",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c8acd6aa6bed3c0fd7898202f4ebc534db9085f2",
              "lessThan": "d920c07aa6d89ec11afdb6976aafaee9563a5234",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c8acd6aa6bed3c0fd7898202f4ebc534db9085f2",
              "lessThan": "4a33886057e6d127555efb022879c583e966acc5",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c8acd6aa6bed3c0fd7898202f4ebc534db9085f2",
              "lessThan": "88a505330eb06128f7ce79a4c5e4832b7601b3d1",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c8acd6aa6bed3c0fd7898202f4ebc534db9085f2",
              "lessThan": "bae65e4925928f77824ca0103122e2ed20ef5802",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c8acd6aa6bed3c0fd7898202f4ebc534db9085f2",
              "lessThan": "54ccc01012a240476edf641bf1a2b8bff54fe6ae",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c8acd6aa6bed3c0fd7898202f4ebc534db9085f2",
              "lessThan": "075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/dma/mmp_pdma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "3.7",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "3.7",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.271",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.222",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.189",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.158",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.112",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.54",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.8",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/2148db529f082d6e3ca95413bf943442f4ef30cc",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/4a33886057e6d127555efb022879c583e966acc5",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/54ccc01012a240476edf641bf1a2b8bff54fe6ae",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/88a505330eb06128f7ce79a4c5e4832b7601b3d1",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/bae65e4925928f77824ca0103122e2ed20ef5802",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/d920c07aa6d89ec11afdb6976aafaee9563a5234",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/f448a5f5bd10d792440a1b08cf2e8f311767032d",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}