{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-138854",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.899Z",
        "datePublished": "2026-11-30T13:25:36.152Z",
        "dateUpdated": "2026-12-01T05:40:22.311Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:40:22.311Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niommu/dma: Catch scatterlist length overflows\n\nIt is possible, when a very large mapping uses only one\nscatterlist, that padding overflows scatterlist's length field.\nThis results in:\n 1) silently wrapping the value\n 2) smaller than desired mappings produced by iommu_map_sg\n 3) leaving mapped bytes in memory (no iommu_unmap)\n\nAddress this issue by adding overflow detection for scatterlist\nlength field."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "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.\nAC: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.\nPR: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.\nUI:N - The attacker allocates and pins the buffer and drives the GPU/RDMA device themselves; no other user action is needed.\nS: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.\nC: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.\nI: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.\nA: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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/iommu/dma-iommu.c"
                    ],
                    "versions": [
                        {
                            "version": "809eac54cdd62c67afea1e17080e681dfa33dc09",
                            "lessThan": "c267a09141bc992fd59f1b09017ed86290478221",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "809eac54cdd62c67afea1e17080e681dfa33dc09",
                            "lessThan": "0ae29e4fb90f019ac88672e6a268ef76de47b22f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "809eac54cdd62c67afea1e17080e681dfa33dc09",
                            "lessThan": "e092174b31d8591e13bbcfeb96553912a315d66e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "809eac54cdd62c67afea1e17080e681dfa33dc09",
                            "lessThan": "5706fc3df84087b067804019e664338610437b6b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "809eac54cdd62c67afea1e17080e681dfa33dc09",
                            "lessThan": "5b5fc4c1bf4745e208d113cafd3a00d2a3772889",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "809eac54cdd62c67afea1e17080e681dfa33dc09",
                            "lessThan": "0ec1d83baa7b319374e3071f48946240149efb74",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "809eac54cdd62c67afea1e17080e681dfa33dc09",
                            "lessThan": "621e1976d48b2b345e1e2cee8efb21efe4a43487",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "809eac54cdd62c67afea1e17080e681dfa33dc09",
                            "lessThan": "1c8f6308e557f32412e9d4678b3f029f47f6d9aa",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/iommu/dma-iommu.c"
                    ],
                    "versions": [
                        {
                            "version": "4.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.7",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.7",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/c267a09141bc992fd59f1b09017ed86290478221"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0ae29e4fb90f019ac88672e6a268ef76de47b22f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e092174b31d8591e13bbcfeb96553912a315d66e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5706fc3df84087b067804019e664338610437b6b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5b5fc4c1bf4745e208d113cafd3a00d2a3772889"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0ec1d83baa7b319374e3071f48946240149efb74"
                },
                {
                    "url": "https://git.kernel.org/stable/c/621e1976d48b2b345e1e2cee8efb21efe4a43487"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1c8f6308e557f32412e9d4678b3f029f47f6d9aa"
                }
            ],
            "title": "iommu/dma: Catch scatterlist length overflows",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}