CVE-2026-138853

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

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In the Linux kernel, a flaw in the DRM tiling memory manager allows a driver to map a buffer object that does not contain a pages array. The kernel’s mapping functions dereference this missing array, leading to a NULL pointer dereference and an OOPS. The result is a kernel crash, which manifests as a system reboot or lock‑up, effectively denying service. The issue is a classic null dereference weakness that can be exploited if a user can trigger the mapping operation, potentially enabling privilege escalation or denial‑of‑service attacks.

Affected Systems

Vulnerable components include the Linux kernel’s ttm_tt objects used for imported scatter‑gather tables, specifically those with the TTM_TT_FLAG_EXTERNAL flag, and drivers that call ttm_bo_kmap or ttm_bo_vmap such as the amdgpu driver. The vulnerability applies to all kernel versions that have not been patched to return -EINVAL when a BO lacks pages.

Risk and Exploitability

No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. The bug is local in nature; an attacker must be able to execute code that invokes the mapping routines, typically via a device driver interface. Once triggered, the kernel crash can lead to denial of service and might provide a foothold for privilege escalation if the crash can be leveraged to gain kernel memory corruption. The absence of remote exploitability statistics suggests a lower probability of widespread exploitation, but the severity of a kernel crash warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that implements the check for missing pages arrays and returns -EINVAL instead of dereferencing the pointer
  • If an immediate kernel upgrade is not possible, modify or disable drivers that import scatter‑gather tables with the TTM_TT_FLAG_EXTERNAL flag until the patch is applied
  • Patch or replace the failing device driver code to use ttm_bo_kmap_try_from_panic or add a guard that verifies the presence of a pages array before calling ttm_bo_kmap

Generated by OpenCVE AI on November 30, 2026 at 17:12 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
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.
Title drm/ttm: return an error when kmapping a BO without pages
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM