---
id: CVE-2026-52950
title: |-
  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
summary: |-
  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 a…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-825
published: '2026-06-24'
updated: '2026-07-10'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-52950'
references:
  - url: 'https://git.kernel.org/stable/c/155a372a1cc50fa93387c5d3cdfd614a61e1afd1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/39fdac6be02eb7c3460518c1c4085f75f935c4ce'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/827062952ed9bdf4220466c1f05ce452d04bdedf'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://access.redhat.com/security/cve/CVE-2026-52950'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2492318'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52950.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
epss: 0.00178
epssPercentile: 0.06544
ingestedAt: '2026-07-11T13:13:24.799Z'
---

## Overview

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)

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
