{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "4d82724f7f2b847eb0454b1aab5450545b39abd4"
            },
            {
              "fixed": "f059b4c493df3e54fe3ffe4658009c31864275da"
            },
            {
              "fixed": "967a00b8e06a7734aded23861faba9ee2462be87"
            },
            {
              "fixed": "a1ba4594232c87c3b8defd6f89a2e40f8b08395d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.18.0"
            },
            {
              "fixed": "6.18.35"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.0.12"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63878.json"
  },
  "details": "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-\u003enum_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)",
  "id": "CVE-2026-63878",
  "modified": "2026-07-21T03:42:09.476648498Z",
  "published": "2026-07-19T14:54:50.977Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/967a00b8e06a7734aded23861faba9ee2462be87"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a1ba4594232c87c3b8defd6f89a2e40f8b08395d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f059b4c493df3e54fe3ffe4658009c31864275da"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63878.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-63878"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO"
}