{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "658ebeac33517bd3169d4b65ed801e9065d0211a"
            },
            {
              "fixed": "18abd88d19ea195e2e1547fca0970c2f91d77a42"
            },
            {
              "fixed": "451f1ccbbdb7b65021646704b15902655f8d228a"
            },
            {
              "fixed": "f706e6a4ce75585af979aec3dcbdce68bc76306b"
            }
          ],
          "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/64xxx/CVE-2026-64008.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\naccel/rocket: fix UAF via dangling GEM handle in create_bo\n\nrocket_ioctl_create_bo() inserts a GEM handle into the file's IDR via\ndrm_gem_handle_create() early on, then performs several operations that\ncan fail (sgt allocation, drm_mm insert, iommu_map). If any fail after\nthe handle is live, the error path calls drm_gem_shmem_object_free()\nwhich kfree's the object without removing the handle from the IDR.\n\nThis leaves a dangling handle pointing to freed slab memory. Any\nsubsequent ioctl using that handle (PREP_BO, FINI_BO, SUBMIT) calls\ndrm_gem_object_lookup() and dereferences freed memory (UAF).\n\nFix by moving drm_gem_handle_create() to after all fallible operations\nsucceed, matching the pattern used by panfrost, lima, and etnaviv.\n\nAlso fix drm_mm_insert_node_generic() whose return value was silently\noverwritten by iommu_map_sgtable() on the next line. Add the missing\nerror check.\n\n[tomeu: Move handle creation to the very end]",
  "id": "CVE-2026-64008",
  "modified": "2026-07-22T05:30:11.411310943Z",
  "published": "2026-07-19T14:56:23.746Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/18abd88d19ea195e2e1547fca0970c2f91d77a42"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/451f1ccbbdb7b65021646704b15902655f8d228a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f706e6a4ce75585af979aec3dcbdce68bc76306b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64008.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-64008"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "accel/rocket: fix UAF via dangling GEM handle in create_bo"
}