VDB

CVE-2026-98242

CVE-2026-98242 PUBLISHED

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

Reported by linux · Published October 6, 2026

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.

EPSS 0.16% · 4.8th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxb344ca94e8cc85796f16ea25e2e5a8e0303fe813, 6b98fd7106d4e486f432664893dcd4d6fa3a9693

Risk scores

EPSS Score
0.16%
4.8th percentile

Affected products

VendorProductVersions
LinuxLinux3aa31a8bb11e47c0ff2b306988d1756b810c1c3c, 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c
LinuxLinux6.19, 0, 7.2.8
LinuxLinux7.2.8, 7.3, 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c
LinuxLinux kernel
linuxlinux_kernel6.19, 6.19

Timeline

  • Oct 6, 2026 EPSS Score (6 in total, the first dated here)
  • Oct 6, 2026 Coalition ESS Score
  • Oct 6, 2026 CVE Published
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98242
vulnetix vdb fixes CVE-2026-98242

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98242/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›