Skip to contentSkip to conversation

CVE-2026-31490: drm/xe/pf: Fix use-after-free in migration restore

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

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/pf: Fix use-after-free in migration restore

When an error is returned from xe_sriov_pf_migration_restore_produce(), the data pointer is not set to NULL, which can trigger use-after-free in subsequent .write() calls.
Set the pointer to NULL upon error to fix the problem.

(cherry picked from commit 4f53d8c6d23527d734fe3531d08e15cb170a0819)

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

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

	Issue introduced in 6.19 with commit 1ed30397c0b92b97381dbd11362fdbbf93e046d2 and fixed in 6.19.11 with commit e28552b4ddea5cb4725380dd08237831af835124
	Issue introduced in 6.19 with commit 1ed30397c0b92b97381dbd11362fdbbf93e046d2 and fixed in 7.0 with commit 87997b6c6516e049cbaf2fc6810b213d587a06b1

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

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_sriov_packet.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/e28552b4ddea5cb4725380dd08237831af835124
	https://git.kernel.org/stable/c/87997b6c6516e049cbaf2fc6810b213d587a06b1