Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138853

published high CVSS 3.1 · 7.0

drm/ttm: return an error when kmapping a BO without pages

Published
30 Nov 2026, 13:25:35 UTC
Updated
01 Dec 2026, 05:40:20 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux75a57669cbc881032c60615a31bfc6bfab4c813c to < 704be250bb97fea86d067a0068a34ac66eb844d0 · 75a57669cbc881032c60615a31bfc6bfab4c813c to < 853100a20c1f3e5f1ceced93ce7ec97b5ab6c301 · 75a57669cbc881032c60615a31bfc6bfab4c813c to < 0c767d9b0d28ea8699804f4360b4bf9bd5254e80 · 75a57669cbc881032c60615a31bfc6bfab4c813c to < 8b5e12139ca8982c4811a6ec2b4252b3e83094a6 · 75a57669cbc881032c60615a31bfc6bfab4c813c to < e3652a5d4cd7726fa4805c2d7890643cd22be2a9 · 75a57669cbc881032c60615a31bfc6bfab4c813c to < 428eeed252ba1dfc84ad10354ac27118a6bf84f2 · 75a57669cbc881032c60615a31bfc6bfab4c813c to < 5c1cbd955faeffc4809da80bfd2b1c567337baf9 · 75a57669cbc881032c60615a31bfc6bfab4c813c to < fd485d47437ba1700dd47205a63b9f389a00aa36 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.17 (affected) · 0 to < 4.17 (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 Affected 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: drm/ttm: return an error when kmapping a BO without pages ttm_tt objects for imported sg tables (ttm_bo_type_sg, set up by ttm_sg_tt_init() with TTM_TT_FLAG_EXTERNAL) only have DMA addresses and no pages array. ttm_bo_kmap() and ttm_bo_vmap() still dereference ttm->pages for them, so a driver that tries to CPU map such a BO oopses instead of getting an error: BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:ttm_bo_kmap+0x26c/0x300 [ttm] Call Trace: amdgpu_bo_kmap+0x89/0xb0 [amdgpu] amdgpu_userq_fence_read_wptr+0x116/0x170 [amdgpu] amdgpu_userq_signal_ioctl+0x3fe/0xbb0 [amdgpu] Return -EINVAL in that case, like ttm_bo_kmap_try_from_panic() already checks for a missing pages array.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

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.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 75a57669cbc881032c60615a31bfc6bfab4c813c to < 704be250bb97fea86d067a0068a34ac66eb844d0 (affected · git)75a57669cbc881032c60615a31bfc6bfab4c813c to < 853100a20c1f3e5f1ceced93ce7ec97b5ab6c301 (affected · git)75a57669cbc881032c60615a31bfc6bfab4c813c to < 0c767d9b0d28ea8699804f4360b4bf9bd5254e80 (affected · git)75a57669cbc881032c60615a31bfc6bfab4c813c to < 8b5e12139ca8982c4811a6ec2b4252b3e83094a6 (affected · git)75a57669cbc881032c60615a31bfc6bfab4c813c to < e3652a5d4cd7726fa4805c2d7890643cd22be2a9 (affected · git)75a57669cbc881032c60615a31bfc6bfab4c813c to < 428eeed252ba1dfc84ad10354ac27118a6bf84f2 (affected · git)75a57669cbc881032c60615a31bfc6bfab4c813c to < 5c1cbd955faeffc4809da80bfd2b1c567337baf9 (affected · git)75a57669cbc881032c60615a31bfc6bfab4c813c to < fd485d47437ba1700dd47205a63b9f389a00aa36 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.17 (affected)0 to < 4.17 (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

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

drm/ttm: return an error when kmapping a BO without pages

Provenance

Schema
5.2
Searchable
yes
Content hash
078f10378e5c4e9774ebd57a695af457c3d7712dff5a96384e3ef6e62deeb7d8
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected