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

drm/gem: fix race between change_handle and handle_delete

drm_gem_change_handle_ioctl leaves the old handle live in the IDR
during the window between spin_unlock(table_lock) and the final
spin_lock(table_lock). A concurrent drm_gem_handle_delete on the old
handle succeeds in this window, decrements handle_count to 0, and frees
the GEM object while the new handle's IDR entry still references it.

NULL the old handle's IDR entry before dropping table_lock so that any
concurrent GEM_CLOSE on the old handle sees NULL and returns -EINVAL.
Restore the old entry on the prime-bookkeeping error path.
Published: 2026-07-19
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel DRM GEM subsystem, a concurrent drm_gem_handle_delete can free a GEM object while an earlier drm_gem_change_handle ioctl holds a reference to it. The freed object is nulled, creating a use‑after‑free scenario that can corrupt kernel memory. The weakness is a (CWE‑366).

Affected Systems

Affected systems are any Linux kernel builds that include the DRM GEM subsystem, including all mainstream distributions that ship with the default kernel. No specific version list is provided in the CWE data, but the fix was introduced in the kernel commit 0dfa42cfe4... and references show the patch applied in recent stable releases. Systems must be running a kernel that contains this patch or a later revision.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity, but the EPSS score is less than 1%. The vulnerability is not listed in CISA's KEV catalog. Attackers would need local, privileged access to issue DRM ioctls that trigger the race. Based on the description, it is inferred that the exploit requires a user scheduled operations on the same GEM object to overlap; thus, the attack likely originates from a local privileged or compromised user.

Generated by OpenCVE AI on August 4, 2026 at 06:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the DRM GEM race‑condition fix (commit 0dfa42cfe4...).
  • If an immediate kernel upgrade is not possible, restrict or disable applications that invoke DRM GEM change_handle and handle_delete operations until the patch is applied; consider disabling the affected DRM drivers or using kernel module options to prevent concurrent execution.
  • Implement device access controls to limit which users or processes can issue DRM GEM ioctls, for example by applying udev rules or setting device permissions, thereby reducing the attack surface for potential local users.

Generated by OpenCVE AI on August 4, 2026 at 06:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 26 Jul 2026 09:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Wed, 22 Jul 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Wed, 22 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


Sun, 19 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/gem: fix race between change_handle and handle_delete drm_gem_change_handle_ioctl leaves the old handle live in the IDR during the window between spin_unlock(table_lock) and the final spin_lock(table_lock). A concurrent drm_gem_handle_delete on the old handle succeeds in this window, decrements handle_count to 0, and frees the GEM object while the new handle's IDR entry still references it. NULL the old handle's IDR entry before dropping table_lock so that any concurrent GEM_CLOSE on the old handle sees NULL and returns -EINVAL. Restore the old entry on the prime-bookkeeping error path.
Title drm/gem: fix race between change_handle and handle_delete
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:36:54.290Z

Reserved: 2026-07-19T07:54:57.018Z

Link: CVE-2026-63885

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63885 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T07:00:05Z

Weaknesses
  • CWE-366

    Race Condition within a Thread