---
id: CVE-2026-98298
title: |-
  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', …
summary: |-
  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', …
severity: high
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= c8acd6aa6bed3c0fd7898202f4ebc534db9085f2 <
    f448a5f5bd10d792440a1b08cf2e8f311767032d
  - >-
    Linux >= c8acd6aa6bed3c0fd7898202f4ebc534db9085f2 <
    2148db529f082d6e3ca95413bf943442f4ef30cc
  - >-
    Linux >= c8acd6aa6bed3c0fd7898202f4ebc534db9085f2 <
    d920c07aa6d89ec11afdb6976aafaee9563a5234
  - >-
    Linux >= c8acd6aa6bed3c0fd7898202f4ebc534db9085f2 <
    4a33886057e6d127555efb022879c583e966acc5
  - >-
    Linux >= c8acd6aa6bed3c0fd7898202f4ebc534db9085f2 <
    88a505330eb06128f7ce79a4c5e4832b7601b3d1
  - >-
    Linux >= c8acd6aa6bed3c0fd7898202f4ebc534db9085f2 <
    bae65e4925928f77824ca0103122e2ed20ef5802
  - >-
    Linux >= c8acd6aa6bed3c0fd7898202f4ebc534db9085f2 <
    54ccc01012a240476edf641bf1a2b8bff54fe6ae
  - >-
    Linux >= c8acd6aa6bed3c0fd7898202f4ebc534db9085f2 <
    075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47
  - Linux 3.7
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T09:18:20.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98298'
references:
  - url: 'https://git.kernel.org/stable/c/075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2148db529f082d6e3ca95413bf943442f4ef30cc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4a33886057e6d127555efb022879c583e966acc5'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/54ccc01012a240476edf641bf1a2b8bff54fe6ae'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/88a505330eb06128f7ce79a4c5e4832b7601b3d1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/bae65e4925928f77824ca0103122e2ed20ef5802'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d920c07aa6d89ec11afdb6976aafaee9563a5234'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f448a5f5bd10d792440a1b08cf2e8f311767032d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98298.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-98298'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2546427'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-98298'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98298'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-98298.mbox
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ingestedAt: '2026-10-06T08:50:17.416Z'
cvss: 7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: vendor
cwe:
  - CWE-125
epss: 0.00184
epssPercentile: 0.07961
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10 · no fix planned: Red Hat Enterprise Linux 10 · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98298.json)
