Skip to contentSkip to conversation

CVE-2026-46201: drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()

When xe_dma_buf_init_obj() fails, the attachment from dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before returning the error. Note: we cannot use goto out_err here because xe_dma_buf_init_obj() already frees bo on failure, and out_err would double-free it.

(cherry picked from commit a828eb185aac41800df8eae4b60501ccc0dbbe51)

The Linux kernel CVE team has assigned CVE-2026-46201 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.12.90 with commit d394669e194936d7ce15284a24a5ae334c4c5b74
	Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.18.32 with commit 0afa8b1ef582ecf6fb04097fd356f8741e5005ed
	Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 7.0.9 with commit eea1e10f8d99c0f04deef707c99705b94bba3b78
	Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 7.1-rc2 with commit 111ab678471bf1f90d078d5513bb086b70596c3c

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-46201

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/xe/xe_dma_buf.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/d394669e194936d7ce15284a24a5ae334c4c5b74
	https://git.kernel.org/stable/c/0afa8b1ef582ecf6fb04097fd356f8741e5005ed
	https://git.kernel.org/stable/c/eea1e10f8d99c0f04deef707c99705b94bba3b78
	https://git.kernel.org/stable/c/111ab678471bf1f90d078d5513bb086b70596c3c