{"id":"CVE-2026-64008","published":"2026-07-19T14:56:23Z","modified":"2026-08-05T12:38:08Z","title":"accel/rocket: fix UAF via dangling GEM handle in create_bo","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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]","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00173,"percentile":0.06745,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/18abd88d19ea195e2e1547fca0970c2f91d77a42","tags":[]},{"url":"https://git.kernel.org/stable/c/451f1ccbbdb7b65021646704b15902655f8d228a","tags":[]},{"url":"https://git.kernel.org/stable/c/f706e6a4ce75585af979aec3dcbdce68bc76306b","tags":[]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.35},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 658ebeac33517bd3169d4b65ed801e9065d0211a, < 18abd88d19ea195e2e1547fca0970c2f91d77a42",">= 658ebeac33517bd3169d4b65ed801e9065d0211a, < 451f1ccbbdb7b65021646704b15902655f8d228a",">= 658ebeac33517bd3169d4b65ed801e9065d0211a, < f706e6a4ce75585af979aec3dcbdce68bc76306b"]},{"vendor":"Linux","product":"Linux","versions":["6.18"]}],"euvd":{"id":"EUVD-2026-45581","exploited":false,"provenance":"source"}}