{
  "id": "CVE-2026-64008",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-64008",
  "published_at": "2026-07-19T14:56:23.746Z",
  "title": "accel/rocket: fix UAF via dangling GEM handle in create_bo",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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]",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 658ebeac33517bd3169d4b65ed801e9065d0211a, \u003c 18abd88d19ea195e2e1547fca0970c2f91d77a42",
          "\u003e= 658ebeac33517bd3169d4b65ed801e9065d0211a, \u003c 451f1ccbbdb7b65021646704b15902655f8d228a",
          "\u003e= 658ebeac33517bd3169d4b65ed801e9065d0211a, \u003c f706e6a4ce75585af979aec3dcbdce68bc76306b"
        ],
        "fixed_in": [
          "18abd88d19ea195e2e1547fca0970c2f91d77a42",
          "451f1ccbbdb7b65021646704b15902655f8d228a",
          "f706e6a4ce75585af979aec3dcbdce68bc76306b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.18"
        ],
        "fixed_in": [
          "0",
          "6.18.35",
          "7.0.12",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 18abd88d19ea195e2e1547fca0970c2f91d77a42 or 451f1ccbbdb7b65021646704b15902655f8d228a or f706e6a4ce75585af979aec3dcbdce68bc76306b or later.",
      "Upgrade Linux to 0 or 6.18.35 or 7.0.12 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
