CVE-2026-64008: accel/rocket: fix UAF via dangling GEM handle in create_bo

Published Jul 19, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

accel/rocket: fix UAF via dangling GEM handle in createbo

rocketioctlcreatebo() inserts a GEM handle into the file's IDR via drmgemhandlecreate() early on, then performs several operations that can fail (sgt allocation, drmmm insert, iommumap). If any fail after the handle is live, the error path calls drmgemshmemobjectfree() which kfree's the object without removing the handle from the IDR.

This leaves a dangling handle pointing to freed slab memory. Any subsequent ioctl using that handle (PREPBO, FINIBO, SUBMIT) calls drmgemobjectlookup() and dereferences freed memory (UAF).

Fix by moving drmgemhandlecreate() to after all fallible operations succeed, matching the pattern used by panfrost, lima, and etnaviv.

Also fix drmmminsertnodegeneric() whose return value was silently overwritten by iommumapsgtable() on the next line. Add the missing error check.

[tomeu: Move handle creation to the very end]

Affected Software

8 affected components
Linux Kernel
Linux Linux kernel>=6.18<6.18.35
Linux Linux kernel>=6.19<7.0.12
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Move drm_gem_handle_create() in rocket_ioctl_create_bo() to after all fallible operations, including sgt allocation, drm_mm insertion, and iommu_map, so an error cannot leave a dangling GEM handle.

  2. Compensating control

    Check and handle the return value of drm_mm_insert_node_generic() in rocket_ioctl_create_bo().

Event History

Jul 19, 2026
CVE Published
via MITRE·02:56 PM
Data Sourced
via MITRE·02:56 PM
DescriptionSeverity
Data Sourced
via NVD·04:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-64008?

CVE-2026-64008 has a risk rating of 60.

2

What does CVE-2026-64008 affect?

CVE-2026-64008 affects the Linux kernel, specifically the accel/rocket component.

3

How do I fix CVE-2026-64008?

To fix CVE-2026-64008, update your Linux kernel to the latest version that includes the patch for this vulnerability.

4

What type of vulnerability is CVE-2026-64008?

CVE-2026-64008 is a use-after-free (UAF) vulnerability caused by a dangling GEM handle.

5

What is the impact of CVE-2026-64008?

CVE-2026-64008 can potentially lead to memory corruption and unexpected behavior in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203