CVE-2026-138854
published high CVSS 3.1 · 7.8iommu/dma: Catch scatterlist length overflows
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux809eac54cdd62c67afea1e17080e681dfa33dc09 to < c267a09141bc992fd59f1b09017ed86290478221 · 809eac54cdd62c67afea1e17080e681dfa33dc09 to < 0ae29e4fb90f019ac88672e6a268ef76de47b22f · 809eac54cdd62c67afea1e17080e681dfa33dc09 to < e092174b31d8591e13bbcfeb96553912a315d66e · 809eac54cdd62c67afea1e17080e681dfa33dc09 to < 5706fc3df84087b067804019e664338610437b6b · 809eac54cdd62c67afea1e17080e681dfa33dc09 to < 5b5fc4c1bf4745e208d113cafd3a00d2a3772889 · 809eac54cdd62c67afea1e17080e681dfa33dc09 to < 0ec1d83baa7b319374e3071f48946240149efb74 · 809eac54cdd62c67afea1e17080e681dfa33dc09 to < 621e1976d48b2b345e1e2cee8efb21efe4a43487 · 809eac54cdd62c67afea1e17080e681dfa33dc09 to < 1c8f6308e557f32412e9d4678b3f029f47f6d9aa · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.7 (affected) · 0 to < 4.7 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: iommu/dma: Catch scatterlist length overflows It is possible, when a very large mapping uses only one scatterlist, that padding overflows scatterlist's length field. This results in: 1) silently wrapping the value 2) smaller than desired mappings produced by iommu_map_sg 3) leaving mapped bytes in memory (no iommu_unmap) Address this issue by adding overflow detection for scatterlist length field.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- Scenarios
- en: AV:L - The oversized scatterlist comes from local allocations: DRM_IOCTL_I915_GEM_USERPTR/GEM_CREATE make i915_gem_userptr_get_pages()/shmem_get_pages() build segments up to i915_sg_segment_size() (0xFFFFF000), then i915_gem_gtt_prepare_pages() -> dma_map_sg_attrs() -> iommu_dma_map_sg(). No remote protocol supplies the segment lengths. AC:H - The prev->length += pad_len wrap needs two adjacent segments of physically contiguous memory that together cross the 4GB PCI segment boundary (0xffffffff, set in pci_device_add()). The user can't see or arrange >2GB contiguous runs on demand (xe added a workaround after hitting them). The device must also be in an IOMMU DMA domain, and abuse needs IOVA and page reuse. PR:L - i915 GEM_CREATE and GEM_USERPTR are DRM_RENDER_ALLOW ioctls on a render node open to ordinary local users. RDMA ib_umem_get() is similar and gated only by RLIMIT_MEMLOCK, so an unprivileged user can submit the oversized scatterlist without any capability. UI:N - The attacker allocates and pins the buffer and drives the GPU/RDMA device themselves; no other user action is needed. S:C - On wrap, iommu_map_sg() maps fewer bytes than iova_len and out_free_iova frees the IOVA without iommu_unmap(). The device keeps live IOMMU translations to pages the kernel frees and reuses, so device DMA escapes its IOMMU domain: an IOMMU isolation bypass that hits host memory outside the granted buffers. C:H - On pre-iommupt VT-d (<=6.18), __domain_mapping() logs 'DMA PTE already set', keeps the stale PTE and returns 0. A later mapping that reuses the freed IOVA (the i915 PAGE_SIZE retry, or a new GEM object) silently points at freed, reallocated pages, so GPU/RDMA reads through the attacker's buffer leak arbitrary kernel memory. I:H - The same stale translations send GPU/RDMA writes to the attacker's newly mapped buffer into physical pages now owned by other kernel allocations. That is arbitrary physical memory corruption, usable for privilege escalation. A:H - Device DMA into reused pages can crash the kernel. Each conflicting PTE fires WARN_ON (fatal with panic_on_warn). On iommupt/io-pgtable-arm, later mappings into the polluted IOVA range fail with -EADDRINUSE/-EEXIST, breaking the device's I/O.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 809eac54cdd62c67afea1e17080e681dfa33dc09 to < c267a09141bc992fd59f1b09017ed86290478221 (affected · git)809eac54cdd62c67afea1e17080e681dfa33dc09 to < 0ae29e4fb90f019ac88672e6a268ef76de47b22f (affected · git)809eac54cdd62c67afea1e17080e681dfa33dc09 to < e092174b31d8591e13bbcfeb96553912a315d66e (affected · git)809eac54cdd62c67afea1e17080e681dfa33dc09 to < 5706fc3df84087b067804019e664338610437b6b (affected · git)809eac54cdd62c67afea1e17080e681dfa33dc09 to < 5b5fc4c1bf4745e208d113cafd3a00d2a3772889 (affected · git)809eac54cdd62c67afea1e17080e681dfa33dc09 to < 0ec1d83baa7b319374e3071f48946240149efb74 (affected · git)809eac54cdd62c67afea1e17080e681dfa33dc09 to < 621e1976d48b2b345e1e2cee8efb21efe4a43487 (affected · git)809eac54cdd62c67afea1e17080e681dfa33dc09 to < 1c8f6308e557f32412e9d4678b3f029f47f6d9aa (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.7 (affected)0 to < 4.7 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0ae29e4fb90f019ac88672e6a268ef76de47b22f
- https://git.kernel.org/stable/c/0ec1d83baa7b319374e3071f48946240149efb74
- https://git.kernel.org/stable/c/1c8f6308e557f32412e9d4678b3f029f47f6d9aa
- https://git.kernel.org/stable/c/5706fc3df84087b067804019e664338610437b6b
- https://git.kernel.org/stable/c/5b5fc4c1bf4745e208d113cafd3a00d2a3772889
- https://git.kernel.org/stable/c/621e1976d48b2b345e1e2cee8efb21efe4a43487
- https://git.kernel.org/stable/c/c267a09141bc992fd59f1b09017ed86290478221
- https://git.kernel.org/stable/c/e092174b31d8591e13bbcfeb96553912a315d66e
Provider assertions
1Linux · cna
iommu/dma: Catch scatterlist length overflows
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- faf854ad21b69cb18211cdb0c65b2540a1e74b686c905a9a3f6a5a93df692c8f
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record