Skip to contentSkip to conversation

CVE-2026-23421: drm/xe/configfs: Free ctx_restore_mid_bb in release

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/configfs: Free ctx_restore_mid_bb in release

ctx_restore_mid_bb memory is allocated in wa_bb_store(), but xe_config_device_release() only frees ctx_restore_post_bb.

Free ctx_restore_mid_bb[0].cs as well to avoid leaking the allocation when the configfs device is removed.

(cherry picked from commit a235e7d0098337c3f2d1e8f3610c719a589e115f)

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

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

	Issue introduced in 6.18 with commit b30d5de3d40c3fa642079bac0d91f17091c5f877 and fixed in 6.18.17 with commit 7f971dfd48983074adc7bbcea3ee95ce7aad47cb
	Issue introduced in 6.18 with commit b30d5de3d40c3fa642079bac0d91f17091c5f877 and fixed in 6.19.7 with commit 3557359ea3df32430ea7c30f7a708ca9a91d7e0e
	Issue introduced in 6.18 with commit b30d5de3d40c3fa642079bac0d91f17091c5f877 and fixed in 7.0-rc3 with commit e377182f0266f46f02d01838e6bde67b9dac0d66

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

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_configfs.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/7f971dfd48983074adc7bbcea3ee95ce7aad47cb
	https://git.kernel.org/stable/c/3557359ea3df32430ea7c30f7a708ca9a91d7e0e
	https://git.kernel.org/stable/c/e377182f0266f46f02d01838e6bde67b9dac0d66