{"id":"CVE-2026-138853","aliases":["CVE-2026-138853"],"related":[],"kind":"vulnerability","state":"published","title":"drm/ttm: return an error when kmapping a BO without pages","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:25:35.590Z","modified":"2026-12-01T06:17:29.010Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"75a57669cbc881032c60615a31bfc6bfab4c813c","fixed":"704be250bb97fea86d067a0068a34ac66eb844d0","status":"affected"},{"type":"git","introduced":"75a57669cbc881032c60615a31bfc6bfab4c813c","fixed":"853100a20c1f3e5f1ceced93ce7ec97b5ab6c301","status":"affected"},{"type":"git","introduced":"75a57669cbc881032c60615a31bfc6bfab4c813c","fixed":"0c767d9b0d28ea8699804f4360b4bf9bd5254e80","status":"affected"},{"type":"git","introduced":"75a57669cbc881032c60615a31bfc6bfab4c813c","fixed":"8b5e12139ca8982c4811a6ec2b4252b3e83094a6","status":"affected"},{"type":"git","introduced":"75a57669cbc881032c60615a31bfc6bfab4c813c","fixed":"e3652a5d4cd7726fa4805c2d7890643cd22be2a9","status":"affected"},{"type":"git","introduced":"75a57669cbc881032c60615a31bfc6bfab4c813c","fixed":"428eeed252ba1dfc84ad10354ac27118a6bf84f2","status":"affected"},{"type":"git","introduced":"75a57669cbc881032c60615a31bfc6bfab4c813c","fixed":"5c1cbd955faeffc4809da80bfd2b1c567337baf9","status":"affected"},{"type":"git","introduced":"75a57669cbc881032c60615a31bfc6bfab4c813c","fixed":"fd485d47437ba1700dd47205a63b9f389a00aa36","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/704be250bb97fea86d067a0068a34ac66eb844d0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/853100a20c1f3e5f1ceced93ce7ec97b5ab6c301","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c767d9b0d28ea8699804f4360b4bf9bd5254e80","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8b5e12139ca8982c4811a6ec2b4252b3e83094a6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3652a5d4cd7726fa4805c2d7890643cd22be2a9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/428eeed252ba1dfc84ad10354ac27118a6bf84f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c1cbd955faeffc4809da80bfd2b1c567337baf9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fd485d47437ba1700dd47205a63b9f389a00aa36","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138853","url":"https://www.cve.org/CVERecord?id=CVE-2026-138853","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:20.883Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138853","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138853","licence":"Public domain","modified":"2026-12-01T06:17:29.010Z"}],"updatedAt":"2026-12-01T06:32:17.081Z","epss":{"score":0.00178,"percentile":0.07662,"date":"2026-12-01T12:00:22.000Z"}}