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)
Published: 2026-07-19
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the AMDGPU driver within the Linux kernel. During the GEM_OP GET_MAPPING_INFO DRM operation, a user‑supplied num_entries value is passed to kvcalloc without validating its size. Because num_entries is a 32‑bit unsigned integer and each entry occupies 32 bytes, a large num_entries can cause the allocation size to exceed INT_MAX, leading to a kernel warning, TAINT_WARN and, on systems with CONFIG_PANIC_ON_WARN set, a kernel panic. This flaw exemplifies CWE‑190: Integer Overflow or Wraparound, and results in a denial of service but does not directly compromise confidentiality or integrity.

Affected Systems

All Linux kernels that include the drm/amdgpu driver before the commit introducing a size bounds check are affected. This includes every Linux distribution shipping such a kernel. Any system running this kernel, regardless of manufacturer, is potentially vulnerable.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while the EPSS score of less than 1 % and absence from CISA’s KEV catalog suggest a low likelihood of widespread exploitation. Based on the description, it is inferred that attackers would need to invoke the GEM_OP GET_MAPPING_INFO DRM operation with a crafted num_entries value. This operation typically requires local access to the graphics device, making the attack vector local rather than remote. The exploit requires privilege to execute privileged firmware code, and therefore is less attractive to remote attackers. The applied patch mitigates the issue by rejecting oversized num_entries early with an error code, preventing the out‑of‑bounds allocation.

Generated by OpenCVE AI on August 4, 2026 at 18:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel version that includes the commit adding a bounds check before kvzalloc in the AMDGPU driver.
  • If updating is not immediately possible, disable CONFIG_PANIC_ON_WARN or set it to n to prevent a kernel panic when a warning occurs.
  • Ensure that applications performing DRM operations cannot pass excessively large num_entries values by validating inputs before calling the driver; consider updating or patching third‑party graphics applications that interact with the AMDGPU driver.

Generated by OpenCVE AI on August 4, 2026 at 18:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Wed, 22 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sun, 19 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
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)
Title drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-19T14:54:50.977Z

Reserved: 2026-07-19T07:54:57.018Z

Link: CVE-2026-63878

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63878 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T18:30:12Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound