# CVE-2024-49876: drm/xe: fix UAF around queue destruction

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-10-21T18:01:16.098Z
- Modified: 2026-08-05T11:40:19.265Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

drm/xe: fix UAF around queue destruction

We currently do stuff like queuing the final destruction step on a
random system wq, which will outlive the driver instance. With bad
timing we can teardown the driver with one or more work workqueue still
being alive leading to various UAF splats. Add a fini step to ensure
user queues are properly torn down. At this point GuC should already be
nuked so queue itself should no longer be referenced from hw pov.

v2 (Matt B)
 - Looks much safer to use a waitqueue and then just wait for the
   xa_array to become empty before triggering the drain.

(cherry picked from commit 861108666cc0e999cffeab6aff17b662e68774e3)

(As written by CVE List.)

## Affected

- Linux Linux: from dd08ebf6c3525a7ea2186e636df064ea47281987 before 272b0e78874586d6ccae04079d75b27b47705544; from dd08ebf6c3525a7ea2186e636df064ea47281987 before 421c74670b0f9d5c007f1276d3647aa58f407fde; from dd08ebf6c3525a7ea2186e636df064ea47281987 before 2d2be279f1ca9e7288282d4214f16eea8a727cdb; 6.8 (not affected: before 6.8; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.8 before 6.10.14; from 6.11 before 6.11.3; 6.12

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/272b0e78874586d6ccae04079d75b27b47705544> (patch)
- <https://git.kernel.org/stable/c/421c74670b0f9d5c007f1276d3647aa58f407fde> (patch)
- <https://git.kernel.org/stable/c/2d2be279f1ca9e7288282d4214f16eea8a727cdb> (patch)

## Sources

- CVE List: [CVE-2024-49876](https://www.cve.org/CVERecord?id=CVE-2024-49876), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-49876](https://nvd.nist.gov/vuln/detail/CVE-2024-49876), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-49876 · Whole record: https://cve.day/CVE-2024-49876.json · Rebuilt by cve.day 2026-11-25T22:58:47.021Z
