{"id":"CVE-2026-63878","published":"2026-07-19T14:54:50Z","modified":"2026-07-19T14:54:50Z","title":"drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO\n\nkvcalloc(args->num_entries, sizeof(*vm_entries), GFP_KERNEL) at\namdgpu_gem.c:1050 uses the user-supplied num_entries directly without\nany upper bounds check. Since num_entries is a __u32 and\nsizeof(drm_amdgpu_gem_vm_entry) is 32 bytes, a large num_entries\nproduces an allocation exceeding INT_MAX, triggering\nWARNING in __kvmalloc_node_noprof(), causing a kernel WARNING,\nTAINT_WARN, and panic on CONFIG_PANIC_ON_WARN=y systems.\n\nAdd a size bounds check before we invoke the kvzalloc() to\nreject oversized num_entries early with -EINVAL.\n\n(cherry picked from commit 1fe7bf5457f6efd7be60b17e23163ba54341d73d)","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0016,"percentile":0.02743,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f059b4c493df3e54fe3ffe4658009c31864275da","tags":[]},{"url":"https://git.kernel.org/stable/c/967a00b8e06a7734aded23861faba9ee2462be87","tags":[]},{"url":"https://git.kernel.org/stable/c/a1ba4594232c87c3b8defd6f89a2e40f8b08395d","tags":[]}],"priority":{"score":0.5,"factors":[{"name":"EPSS percentile","points":0.55}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4d82724f7f2b847eb0454b1aab5450545b39abd4, < f059b4c493df3e54fe3ffe4658009c31864275da",">= 4d82724f7f2b847eb0454b1aab5450545b39abd4, < 967a00b8e06a7734aded23861faba9ee2462be87",">= 4d82724f7f2b847eb0454b1aab5450545b39abd4, < a1ba4594232c87c3b8defd6f89a2e40f8b08395d"]},{"vendor":"Linux","product":"Linux","versions":["6.18"]}],"euvd":{"id":"EUVD-2026-45763","exploited":false,"provenance":"source"}}