# CVE-2026-52976: drm/xe: Fix error cleanup in xe\_exec\_queue\_create\_ioctl()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-26)
- **CWE:** CWE-416, CWE-825
- **Published:** 2026-06-24T16:28:53.147Z
- **Modified:** 2026-10-19T20:18:52.510Z

## Who should check

- Anyone running Linux \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< f93b00161213a0fe9f7ff1d8498ee5ca9e0a5c43; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< 753b149d5a433eb19e0c1b0eb4526a6e26120d1f; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< 1be55646d8a2035343b012dcb12210db7bb8b056; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< f3cc22d4df3ed58439ea7e21daa54c3608e03b78
- Anyone running Linux 6.12

## Description

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

drm/xe: Fix error cleanup in xe\_exec\_queue\_create\_ioctl()

Two error handling issues exist in xe\_exec\_queue\_create\_ioctl():

1. When xe\_hw\_engine\_group\_add\_exec\_queue() fails, the error path jumps
   to put\_exec\_queue which skips xe\_exec\_queue\_kill(). If the VM is in
   preempt fence mode, xe\_vm\_add\_compute\_exec\_queue() has already added
   the queue to the VM's compute exec queue list. Skipping the kill
   leaves the queue on that list, leading to a dangling pointer after
   the queue is freed.

2. When xa\_alloc() fails after xe\_hw\_engine\_group\_add\_exec\_queue() has
   succeeded, the error path does not call
   xe\_hw\_engine\_group\_del\_exec\_queue() to remove the queue from the hw
   engine group list. The queue is then freed while still linked into
   the hw engine group, causing a use-after-free.

Fix both by:
- Changing the xe\_hw\_engine\_group\_add\_exec\_queue() failure path to jump
  to kill\_exec\_queue so that xe\_exec\_queue\_kill() properly removes the
  queue from the VM's compute list.
- Adding a del\_hw\_engine\_group label before kill\_exec\_queue for the
  xa\_alloc() failure path, which removes the queue from the hw engine
  group before proceeding with the rest of the cleanup.

(cherry picked from commit 37c831f401746a45d510b312b0ed7a77b1e06ec8)

## Affected and fixed versions

- Linux: \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< f93b00161213a0fe9f7ff1d8498ee5ca9e0a5c43; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< 753b149d5a433eb19e0c1b0eb4526a6e26120d1f; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< 1be55646d8a2035343b012dcb12210db7bb8b056; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< f3cc22d4df3ed58439ea7e21daa54c3608e03b78 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-52976. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-52976.md
Affected: Linux >= 7970cb36966c9b9183255dc097ae0446300eebcf, < f93b00161213a0fe9f7ff1d8498ee5ca9e0a5c43; >= 7970cb36966c9b9183255dc097ae0446300eebcf, < 753b149d5a433eb19e0c1b0eb4526a6e26120d1f; >= 7970cb36966c9b9183255dc097ae0446300eebcf, < 1be55646d8a2035343b012dcb12210db7bb8b056; >= 7970cb36966c9b9183255dc…
Fixed in: Linux 753b149d5a433eb19e0c1b0eb4526a6e26120d1f, Linux 1be55646d8a2035343b012dcb12210db7bb8b056

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-52976 being exploited?

There is no confirmed exploitation: CVE-2026-52976 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-52976?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-52976?

Linux \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< f93b00161213a0fe9f7ff1d8498ee5ca9e0a5c43; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< 753b149d5a433eb19e0c1b0eb4526a6e26120d1f; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< 1be55646d8a2035343b012dcb12210db7bb8b056; \>= 7970cb36966c9b9183255dc097ae0446300eebcf, \< f3cc22d4df3ed58439ea7e21daa54c3608e03b78; Linux 6.12.

### Is there a fix for CVE-2026-52976?

Yes. Fixed in Linux 753b149d5a433eb19e0c1b0eb4526a6e26120d1f, Linux 1be55646d8a2035343b012dcb12210db7bb8b056. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-52976?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2026:52764>
- vendor: <https://access.redhat.com/errata/RHSA-2026:42919>
- vendor: <https://access.redhat.com/errata/RHSA-2026:52667>
- vendor: <https://access.redhat.com/errata/RHSA-2026:45192>
- patch: <https://git.kernel.org/stable/c/f93b00161213a0fe9f7ff1d8498ee5ca9e0a5c43>
- patch: <https://git.kernel.org/stable/c/753b149d5a433eb19e0c1b0eb4526a6e26120d1f>
- patch: <https://git.kernel.org/stable/c/1be55646d8a2035343b012dcb12210db7bb8b056>
- patch: <https://git.kernel.org/stable/c/f3cc22d4df3ed58439ea7e21daa54c3608e03b78>
- other: <https://access.redhat.com/security/cve/CVE-2026-52976>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2492284>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52976.json>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-52976>

HTML: <https://flawdb.com/CVE-2026-52976> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-52976>
