# CVE-2026-63878: drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-19T14:54:50.977Z
- Modified: 2026-10-30T14:49:19.500Z
- Assigned by: Linux

## Description

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)

(As written by CVE List.)

## Affected

- Linux Linux: from 4d82724f7f2b847eb0454b1aab5450545b39abd4 before f059b4c493df3e54fe3ffe4658009c31864275da; from 4d82724f7f2b847eb0454b1aab5450545b39abd4 before 967a00b8e06a7734aded23861faba9ee2462be87; from 4d82724f7f2b847eb0454b1aab5450545b39abd4 before a1ba4594232c87c3b8defd6f89a2e40f8b08395d; 6.18 (not affected: before 6.18; from 6.18.35 up to 6.18.*; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.18 before 6.18.35; from 6.19 before 7.0.12; 7.1

## References

- <https://git.kernel.org/stable/c/f059b4c493df3e54fe3ffe4658009c31864275da> (patch)
- <https://git.kernel.org/stable/c/967a00b8e06a7734aded23861faba9ee2462be87> (patch)
- <https://git.kernel.org/stable/c/a1ba4594232c87c3b8defd6f89a2e40f8b08395d> (patch)

## Sources

- CVE List: [CVE-2026-63878](https://www.cve.org/CVERecord?id=CVE-2026-63878), CVE Terms of Use, modified 2026-07-19
- NVD: [CVE-2026-63878](https://nvd.nist.gov/vuln/detail/CVE-2026-63878), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-63878 · Whole record: https://cve.day/CVE-2026-63878.json · Rebuilt by cve.day 2026-11-25T22:59:28.788Z
