# CVE-2026-98242: dma-buf: Fix silent overflow for phys vec to sgt

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-06T08:45:12.662Z
- **Modified:** 2026-10-19T10:18:25.103Z

## Who should check

- Anyone running Linux \>= 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, \< 6b98fd7106d4e486f432664893dcd4d6fa3a9693; \>= 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, \< b344ca94e8cc85796f16ea25e2e5a8e0303fe813
- Anyone running Linux 6.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

dma-buf: Fix silent overflow for phys vec to sgt

In case MMIO size is bigger than 4G and peer2peer DMA goes
through host bridge, we trigger a code path that assigns the
total linked IOVA (which is greater than 4G) to mapped\_len.

Previously, \`mapped\_len\` was declared as 32-bit \`unsigned int\`.
When accumulating \`size\_t\` lengths, this leads to a silent wrap-around.
This truncation causes truncated lengths to be passed to functions
like \`fill\_sg\_entry()\`.

Fix this by changing \`mapped\_len\` to \`size\_t\` (64-bit). While
at it, fix similar potential overflow issues in \`calc\_sg\_nents\`
by using \`check\_add\_overflow()\` for \`nents\` and using
\`unsigned int\` for the loop iterator in \`fill\_sg\_entry\` to match.

## Affected and fixed versions

- Linux: \>= 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, \< 6b98fd7106d4e486f432664893dcd4d6fa3a9693; \>= 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, \< b344ca94e8cc85796f16ea25e2e5a8e0303fe813 (cvelist)
- Linux: 6.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98242. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98242.md
Affected: Linux >= 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, < 6b98fd7106d4e486f432664893dcd4d6fa3a9693; >= 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, < b344ca94e8cc85796f16ea25e2e5a8e0303fe813; Linux 6.19
Fixed in: Linux 6b98fd7106d4e486f432664893dcd4d6fa3a9693

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98242 being exploited?

There is no confirmed exploitation: CVE-2026-98242 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98242?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98242?

Linux \>= 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, \< 6b98fd7106d4e486f432664893dcd4d6fa3a9693; \>= 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, \< b344ca94e8cc85796f16ea25e2e5a8e0303fe813; Linux 6.19.

### Is there a fix for CVE-2026-98242?

Yes. Fixed in Linux 6b98fd7106d4e486f432664893dcd4d6fa3a9693. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98242?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/6b98fd7106d4e486f432664893dcd4d6fa3a9693>
- other: <https://git.kernel.org/stable/c/b344ca94e8cc85796f16ea25e2e5a8e0303fe813>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98242>

HTML: <https://flawdb.com/CVE-2026-98242> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98242>
