{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-138853",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.898Z",
        "datePublished": "2026-11-30T13:25:35.590Z",
        "dateUpdated": "2026-12-01T05:40:20.883Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:40:20.883Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/ttm: return an error when kmapping a BO without pages\n\nttm_tt objects for imported sg tables (ttm_bo_type_sg, set up by\nttm_sg_tt_init() with TTM_TT_FLAG_EXTERNAL) only have DMA addresses and\nno pages array. ttm_bo_kmap() and ttm_bo_vmap() still dereference\nttm->pages for them, so a driver that tries to CPU map such a BO oopses\ninstead of getting an error:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000000\n  RIP: 0010:ttm_bo_kmap+0x26c/0x300 [ttm]\n  Call Trace:\n   amdgpu_bo_kmap+0x89/0xb0 [amdgpu]\n   amdgpu_userq_fence_read_wptr+0x116/0x170 [amdgpu]\n   amdgpu_userq_signal_ioctl+0x3fe/0xbb0 [amdgpu]\n\nReturn -EINVAL in that case, like ttm_bo_kmap_try_from_panic() already\nchecks for a missing pages array."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - Every trigger is a local syscall on the DRM render node: DRM_IOCTL_PRIME_FD_TO_HANDLE imports a foreign dma-buf as a ttm_bo_type_sg BO, AMDGPU_GEM_MMAP plus mmap() maps it, and pread/pwrite on /proc/self/mem reach ttm_bo_vm_access. AMDGPU_CS is a second route. No remote peer supplies any data.\nAC:H - The oops is reliable on every CPU. Turning the ttm->pages[start_page] load in ttm_bo_kmap_ttm into read/write needs a CPU without SMAP/PAN, such as pre-Broadwell Intel or pre-Zen AMD, the typical radeon/hybrid-PRIME hosts. It also needs the vmemmap base to forge a struct page pointer. The attacker cannot cause either condition.\nPR:L - The attacker needs an ordinary user's access to /dev/dri/renderD* (render group or seat uaccess), where PRIME_FD_TO_HANDLE, AMDGPU_GEM_MMAP and AMDGPU_CS are DRM_RENDER_ALLOW. They also need a second dma-buf exporter they can open, such as another GPU's render node or udmabuf. No root or capability check is on the path.\nUI:N - The attacker performs every step themselves: export a buffer from a second device, import it into amdgpu, radeon or nouveau, mmap it, and read or write the mapping through /proc/self/mem or submit it as an IB. No victim action is needed.\nS:U - The bad access happens in the kernel's own TTM code (ttm_bo_kmap_ttm/ttm_bo_vmap) and affects only the same kernel. No VM, IOMMU or sandbox boundary is crossed.\nC:H - ttm_bo_vm_access_kmap calls ttm_bo_kmap(bo, page, 1) with a user-chosen page. With ttm->pages NULL for sg imports, the kernel loads a struct page* from address 8*page, which is user-mappable once the BO exceeds 32 MiB (page >= 8192). Without SMAP, that forged page is kmapped and memcpy'd to the /proc/self/mem reader, which reads an arbitrary physical page.\nI:H - The same path with pwrite() on /proc/self/mem makes ttm_bo_vm_access_kmap run memcpy(ptr, buf, bytes) into the page named by the attacker-forged struct page pointer read from ttm->pages[start_page]. That is an arbitrary physical-page write, enough for privilege escalation on hosts without SMAP/PAN.\nA:H - On any CPU, using an imported sg BO as the IB of an AMDGPU_CS JPEG job makes amdgpu_cs_patch_ibs call amdgpu_bo_kmap, which faults on ttm->pages[0], a NULL dereference. A /proc/self/mem access to the mapped BO does the same, or hits an SMAP fault. Either way the kernel oopses, and the attacker can repeat it at will."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/ttm/ttm_bo_util.c"
                    ],
                    "versions": [
                        {
                            "version": "75a57669cbc881032c60615a31bfc6bfab4c813c",
                            "lessThan": "704be250bb97fea86d067a0068a34ac66eb844d0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "75a57669cbc881032c60615a31bfc6bfab4c813c",
                            "lessThan": "853100a20c1f3e5f1ceced93ce7ec97b5ab6c301",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "75a57669cbc881032c60615a31bfc6bfab4c813c",
                            "lessThan": "0c767d9b0d28ea8699804f4360b4bf9bd5254e80",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "75a57669cbc881032c60615a31bfc6bfab4c813c",
                            "lessThan": "8b5e12139ca8982c4811a6ec2b4252b3e83094a6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "75a57669cbc881032c60615a31bfc6bfab4c813c",
                            "lessThan": "e3652a5d4cd7726fa4805c2d7890643cd22be2a9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "75a57669cbc881032c60615a31bfc6bfab4c813c",
                            "lessThan": "428eeed252ba1dfc84ad10354ac27118a6bf84f2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "75a57669cbc881032c60615a31bfc6bfab4c813c",
                            "lessThan": "5c1cbd955faeffc4809da80bfd2b1c567337baf9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "75a57669cbc881032c60615a31bfc6bfab4c813c",
                            "lessThan": "fd485d47437ba1700dd47205a63b9f389a00aa36",
                            "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/gpu/drm/ttm/ttm_bo_util.c"
                    ],
                    "versions": [
                        {
                            "version": "4.17",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.17",
                            "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.17",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/704be250bb97fea86d067a0068a34ac66eb844d0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/853100a20c1f3e5f1ceced93ce7ec97b5ab6c301"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0c767d9b0d28ea8699804f4360b4bf9bd5254e80"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8b5e12139ca8982c4811a6ec2b4252b3e83094a6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e3652a5d4cd7726fa4805c2d7890643cd22be2a9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/428eeed252ba1dfc84ad10354ac27118a6bf84f2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5c1cbd955faeffc4809da80bfd2b1c567337baf9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fd485d47437ba1700dd47205a63b9f389a00aa36"
                }
            ],
            "title": "drm/ttm: return an error when kmapping a BO without pages",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}