{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-64008",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-07-19T07:54:57.026Z",
        "datePublished": "2026-07-19T14:56:23.746Z",
        "dateUpdated": "2026-08-05T12:38:08.050Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:38:08.050Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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]"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The bug is reached only through DRM ioctls on the local /dev/accel/accel* character device; there is no network, adjacent-wireless, or physical bus path to rocket_ioctl_create_bo().\nAC:L - An attacker fully controls both steps—forcing CREATE_BO to fail after handle insertion (e.g., by exhausting the per-fd IOMMU drm_mm aperture or triggering sgt/iommu_map errors) and then issuing PREP_BO/FINI_BO/SUBMIT with the returned dangling handle—without depending on external timing or victim state.\nPR:L - All rocket ioctls are registered with DRM_IOCTL_DEF_DRV flags 0 (no DRM_ROOT_ONLY/DRM_AUTH/DRM_MASTER), requiring only the ability to open the accel device node, which is standard unprivileged local access on RK3588 edge-AI/embedded systems running ML workloads.\nUI:N - Exploitation requires no action from a separate victim; the attacker creates the dangling handle and triggers the UAF through their own ioctl sequence on a device they opened.\nS:U - Impact is kernel heap UAF leading to local privilege escalation or crash within the same kernel security authority; it is not a VM escape, IOMMU DMA-boundary bypass, or cross-hypervisor attack.\nC:H - The dangling GEM handle causes use-after-free of a kmalloc'd rocket_gem_object; subsequent lookups dereference freed slab memory (resv, sgt, mm node fields), enabling arbitrary kernel memory read via heap grooming.\nI:H - UAF on the GEM object structure allows heap spraying to corrupt kernel metadata and control flow; the SUBMIT ioctl path further processes corrupted BO pointers for NPU job scheduling, supporting arbitrary write and code execution primitives.\nA:H - UAF dereferences in PREP_BO/FINI_BO/SUBMIT reliably cause kernel oops/panic, and the dangling-handle condition is repeatable for sustained denial of service."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/accel/rocket/rocket_gem.c"
                    ],
                    "versions": [
                        {
                            "version": "658ebeac33517bd3169d4b65ed801e9065d0211a",
                            "lessThan": "18abd88d19ea195e2e1547fca0970c2f91d77a42",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "658ebeac33517bd3169d4b65ed801e9065d0211a",
                            "lessThan": "451f1ccbbdb7b65021646704b15902655f8d228a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "658ebeac33517bd3169d4b65ed801e9065d0211a",
                            "lessThan": "f706e6a4ce75585af979aec3dcbdce68bc76306b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/accel/rocket/rocket_gem.c"
                    ],
                    "versions": [
                        {
                            "version": "6.18",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.18",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.35",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0.12",
                            "lessThanOrEqual": "7.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18",
                                    "versionEndExcluding": "6.18.35"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18",
                                    "versionEndExcluding": "7.0.12"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18",
                                    "versionEndExcluding": "7.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/18abd88d19ea195e2e1547fca0970c2f91d77a42"
                },
                {
                    "url": "https://git.kernel.org/stable/c/451f1ccbbdb7b65021646704b15902655f8d228a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f706e6a4ce75585af979aec3dcbdce68bc76306b"
                }
            ],
            "title": "accel/rocket: fix UAF via dangling GEM handle in create_bo",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}