1. Home
  2. Vulnerabilities
  3. CVE-2026-63878

CVE-2026-63878

drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO

Published 19 Jul 2026 · modified 30 Oct 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 23/100

Summary

In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO kvcalloc(args->num_entries, sizeof(*vm_entries), GFP_KERNEL) at amdgpu_gem.c:1050 uses the user-supplied num_entries directly without any upper bounds check. Since num_entries is a __u32 and sizeof(drm_amdgpu_gem_vm_entry) is 32 bytes, a large num_entries produces an allocation exceeding INT_MAX, triggering WARNING in __kvmalloc_node_noprof(), causing a kernel WARNING, TAINT_WARN, and panic on CONFIG_PANIC_ON_WARN=y systems. Add a size bounds check before we invoke the kvzalloc() to reject oversized num_entries early with -EINVAL. (cherry picked from commit 1fe7bf5457f6efd7be60b17e23163ba54341d73d)

Affected products and versions

Linux (4 line(s))
Linux
ProductVersionsFixed inSource
Linux 6.18 — CNA (vendor or assigner)
Linux kernel from 6.18 (included) to 6.18.35 (excluded) — NVD
Linux kernel from 6.19 (included) to 7.0.12 (excluded) — NVD
Linux kernel 7.1 — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
NVD-CWE-noinfo · Non classé

How this data is obtained and calculated