{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-98298",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2026-98298"
  ],
  "published": "2026-10-06T08:47:10Z",
  "summary": "dmaengine: mmp_pdma: fix wrong sg length in mmp_pdma_prep_slave_sg()",
  "details": "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": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.189",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-98298"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f448a5f5bd10d792440a1b08cf2e8f311767032d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2148db529f082d6e3ca95413bf943442f4ef30cc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d920c07aa6d89ec11afdb6976aafaee9563a5234"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4a33886057e6d127555efb022879c583e966acc5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/88a505330eb06128f7ce79a4c5e4832b7601b3d1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/bae65e4925928f77824ca0103122e2ed20ef5802"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/54ccc01012a240476edf641bf1a2b8bff54fe6ae"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-06T08:47:10Z"
  }
}
