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)
Published: 2026-06-24
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A use‑after‑free flaw was discovered in the DRM/external engine (XE) DMA buffer handling path of the Linux kernel. The bug occurs when a buffer object (bo) is freed during an error path, and the retry loop that relies on that freed object is unsafe. If an attacker can trigger the free condition, they can access the freed memory region, potentially corrupting kernel memory. Such memory corruption can lead to kernel data structure manipulation, privilege escalation, or arbitrary code execution.

Affected Systems

All Linux kernel releases that did not incorporate the commit that introduced the retry‑safety knob (commit 4796694). The fix replaces the previous retry logic with an allocation‑before‑attachment pattern, ensuring the buffer object is not freed until cleanup. Linux kernels in all distributions should be checked for the presence of this commit to determine whether they remain vulnerable.

Risk and Exploitability

The vulnerability is a classic use‑after‑free (CWE‑416) that can be exploited from privileged contexts or via malicious drivers. EPSS data is unavailable and the vulnerability is not listed in CISA’s KEV catalog, but the lack of on‑disk evidence of exploitation does not eliminate the high risk associated with kernel memory corruption. Attackers would need to engage the DRM subsystem, perhaps through a high‑privilege application or by loading a malicious kernel module that abuses the XE DMA API. Given the absence of a published exploit, the likelihood of current exploitation is uncertain, but the potential impact warrants urgent patching.

Generated by OpenCVE AI on June 24, 2026 at 18:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Always apply the latest Linux kernel patches that contain commit 4796694; most major distributions package this change in their security updates.
  • If your environment cannot be upgraded immediately, restrict the use of DRM XE drivers to trusted, signed, and verified modules and disable any custom kernel modules that access the DRM subsystem.
  • Monitor kernel logs for EFI or panic events that could indicate a kernel memory corruption bug; treat any unexpected DMA buffer allocation failures as a potential indicator of exploitation attempts.

Generated by OpenCVE AI on June 24, 2026 at 18:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 24 Jun 2026 17:15:00 +0000

Type Values Removed Values Added
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)
Title drm/xe/dma-buf: fix UAF with retry loop
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T16:28:33.469Z

Reserved: 2026-06-09T07:44:35.372Z

Link: CVE-2026-52950

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T18:30:06Z

Weaknesses