CVE-2026-64517

drm/xe/gsc: Fix double-free of managed BO in error path

Published Jul 25, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/xe/gsc: Fix double-free of managed BO in error path

The error path in xe_gsc_init_post_hwconfig() explicitly frees a BO
allocated with xe_managed_bo_create_pin_map() via
xe_bo_unpin_map_no_vm(). Since the managed BO already has a devm
cleanup action registered, this causes a double-free when devm
unwinds during probe failure.

Remove the explicit free and let devm handle it, consistent with
all other xe_managed_bo_create_pin_map() callers.

(cherry picked from commit 71d61e3e299a17139e47f980a4d6f425b2c59bf7)

Analysis

AI-generated

Technical impact

An attacker could trigger a double‑free in the Linux DRM Xe driver when a graphics device fails to finalize a configuration. In the xe_gsc_init_post_hwconfig() error path the code frees a buffer that has already been registered for device‑managed cleanup, producing kernel memory corruption. This flaw matches a double‑free weakness (CWE‑415) that can lead to privilege escalation or a kernel crash, and also represents a memory corruption weakness (CWE‑1341).

Affected Systems

Any Linux kernel that ships with the drm/xe driver and does not yet include the upstream commit that removes the second free is affected. The fix is applied in recent mainline releases after commit 71d61e3e. Systems running older kernel versions that have not integrated that commit remain at risk.

Risk and Exploitability

The EPSS score is below 1 percent and the vulnerability is not in the CISA KEV catalog, so exploitation is currently uncommon. It is inferred that an attacker would need to trigger a probe failure during driver initialization, which typically requires local privileges or control of the device. Successful exploitation would corrupt kernel memory and could allow an attacker with user‑level privileges to gain kernel execution. This vulnerability is a double‑free flaw (CWE‑415) and also falls under CWE‑1341, confirming a memory corruption weakness. The CVSS score of 7.8 indicates high severity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the fix for CVE-2026-64517.
  • Reboot the system or unload and reload the drm/xe driver to ensure the patched code is in use.
  • If an immediate kernel upgrade is not possible, temporarily disable the Intel Xe GSC driver to prevent the double‑free scenario during device initialization.

Generated by OpenCVE AI on November 22, 2026 at 22:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-415
CPEs 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:*:*:*:*:*:*
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-415
Type Values Removed Values Added
Weaknesses CWE-415
Type Values Removed Values Added
Weaknesses CWE-1341
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/xe/gsc: Fix double-free of managed BO in error path The error path in xe_gsc_init_post_hwconfig() explicitly frees a BO allocated with xe_managed_bo_create_pin_map() via xe_bo_unpin_map_no_vm(). Since the managed BO already has a devm cleanup action registered, this causes a double-free when devm unwinds during probe failure. Remove the explicit free and let devm handle it, consistent with all other xe_managed_bo_create_pin_map() callers. (cherry picked from commit 71d61e3e299a17139e47f980a4d6f425b2c59bf7)
Title drm/xe/gsc: Fix double-free of managed BO in error path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle

  • CWE-415

    Double Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jul 25, 2026, 9:14 AM
Reserved
Jul 19, 2026, 3:36 PM
Status
Analyzed
Published
Jul 25, 2026, 10:17 AM
Modified
Nov 17, 2026, 8:12 PM
Severity
Moderate
Public date
Jul 25, 2026, 12:00 AM