# CVE-2026-52950: drm/xe/dma-buf: fix UAF with retry loop

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-24T16:28:33.469Z
- Modified: 2026-10-19T20:18:49.707Z
- Weaknesses: CWE-416, CWE-825
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

drm/xe/dma-buf: fix UAF with retry loop

Retry doesn't work here, since bo will be freed on error, leading to
UAF. However, now that we do the alloc & init before the attach, we can
now combine this as one unit and have the init do the alloc for us. This
should make the retry safe.

Reported by Sashiko.

v2: Fix up the error unwind (CI)

(cherry picked from commit 479669418253e0f27f8cf5db01a731352ea592e7)

(As written by CVE List.)

## Affected

- Linux Linux: from eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 before 39fdac6be02eb7c3460518c1c4085f75f935c4ce; from eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 before 827062952ed9bdf4220466c1f05ce452d04bdedf; from eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 before 155a372a1cc50fa93387c5d3cdfd614a61e1afd1; 6.18 (not affected: before 6.18; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- kernel: no versions given (not affected: from 0:6.12.0-211.37.1.el10_2 before *; from 0:5.14.0-687.30.1.el9_8 before *)
- kernel-rt: no versions given
- linux linux_kernel: from 6.18 before 6.18.33; from 6.19 before 7.0.10; 7.1

## 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`
- redhat-SADP: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/39fdac6be02eb7c3460518c1c4085f75f935c4ce> (patch)
- <https://git.kernel.org/stable/c/827062952ed9bdf4220466c1f05ce452d04bdedf> (patch)
- <https://git.kernel.org/stable/c/155a372a1cc50fa93387c5d3cdfd614a61e1afd1> (patch)
- <https://access.redhat.com/security/cve/CVE-2026-52950> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2492318> (issue-tracking, third-party-advisory)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52950.json> (third-party-advisory)
- <https://access.redhat.com/errata/RHSA-2026:42919> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:45192> (vendor-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2026-52950 · Whole record: https://cve.day/CVE-2026-52950.json · Rebuilt by cve.day 2026-11-25T22:59:25.626Z
