CVE-2026-63878

Source
https://cve.org/CVERecord?id=CVE-2026-63878
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63878.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-63878
Downstream
Published
2026-07-19T14:54:50.977Z
Modified
2026-07-21T03:46:59.771564262Z
Summary
drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO
Details

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: check numentries in GEMOP GETMAPPINGINFO

kvcalloc(args->numentries, sizeof(*vmentries), GFPKERNEL) at amdgpugem.c:1050 uses the user-supplied numentries directly without any upper bounds check. Since numentries is a __u32 and sizeof(drmamdgpugemvmentry) is 32 bytes, a large numentries produces an allocation exceeding INTMAX, triggering WARNING in __kvmallocnodenoprof(), causing a kernel WARNING, TAINTWARN, and panic on CONFIGPANICONWARN=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)

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63878.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4d82724f7f2b847eb0454b1aab5450545b39abd4
Fixed
f059b4c493df3e54fe3ffe4658009c31864275da
Fixed
967a00b8e06a7734aded23861faba9ee2462be87
Fixed
a1ba4594232c87c3b8defd6f89a2e40f8b08395d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63878.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.18.0
Fixed
6.18.35
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63878.json"