Skip to contentSkip to conversation

CVE-2025-39811: drm/xe/vm: Clear the scratch_pt pointer on error

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16, 2025

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/vm: Clear the scratch_pt pointer on error

Avoid triggering a dereference of an error pointer on cleanup in xe_vm_free_scratch() by clearing any scratch_pt error pointer.

(cherry picked from commit 358ee50ab565f3c8ea32480e9d03127a81ba32f8)

The Linux kernel CVE team has assigned CVE-2025-39811 to this issue.

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

	Issue introduced in 6.8 with commit 06951c2ee72df2f53b71e7cf2b504d4fa6bba453 and fixed in 6.12.45 with commit c8277d229c7840e8090d4704e50f2ca014d194c7
	Issue introduced in 6.8 with commit 06951c2ee72df2f53b71e7cf2b504d4fa6bba453 and fixed in 6.16.5 with commit 84603ed1d73ebb8de856dc11f4f5d3541c48f7a2
	Issue introduced in 6.8 with commit 06951c2ee72df2f53b71e7cf2b504d4fa6bba453 and fixed in 6.17-rc4 with commit 2b55ddf36229e0278c956215784ab1feeff510aa

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-2025-39811

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_vm.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/c8277d229c7840e8090d4704e50f2ca014d194c7
	https://git.kernel.org/stable/c/84603ed1d73ebb8de856dc11f4f5d3541c48f7a2
	https://git.kernel.org/stable/c/2b55ddf36229e0278c956215784ab1feeff510aa