Skip to contentSkip to conversation

CVE-2026-31390: drm/xe: Fix memory leak in xe_vm_madvise_ioctl

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 3

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 memory leak in xe_vm_madvise_ioctl

When check_bo_args_are_sane() validation fails, jump to the new free_vmas cleanup label to properly free the allocated resources. This ensures proper cleanup in this error path.

(cherry picked from commit 29bd06faf727a4b76663e4be0f7d770e2d2a7965)

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

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

	Issue introduced in 6.18 with commit 293032eec4baa04374d62dd44de61e355296ad32 and fixed in 6.18.20 with commit c3aa7b837920c844d5ae0dd3dbaeb465a461de40
	Issue introduced in 6.18 with commit 293032eec4baa04374d62dd44de61e355296ad32 and fixed in 6.19.10 with commit 1c87b48a0ff040723f84a67b32892af7e6a3634f
	Issue introduced in 6.18 with commit 293032eec4baa04374d62dd44de61e355296ad32 and fixed in 7.0-rc3 with commit 0cfe9c4838f1147713f6b5c02094cd4dc0c598fa

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-31390

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_madvise.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/c3aa7b837920c844d5ae0dd3dbaeb465a461de40
	https://git.kernel.org/stable/c/1c87b48a0ff040723f84a67b32892af7e6a3634f
	https://git.kernel.org/stable/c/0cfe9c4838f1147713f6b5c02094cd4dc0c598fa