CVE-2026-23418: drm/xe/reg_sr: Fix leak on xa_store failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/reg_sr: Fix leak on xa_store failure
Free the newly allocated entry when xa_store() fails to avoid a memory leak on the error path.
v2: use goto fail_free. (Bala)
(cherry picked from commit 6bc6fec71ac45f52db609af4e62bdb96b9f5fadb)
The Linux kernel CVE team has assigned CVE-2026-23418 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.14 with commit e5283bd4dfecbd3335f43b62a68e24dae23f59e4 and fixed in 6.18.17 with commit 05e3f01974d09d1b746dedf4144f708b5033e76f Issue introduced in 6.14 with commit e5283bd4dfecbd3335f43b62a68e24dae23f59e4 and fixed in 6.19.7 with commit 4f461da14c7b226d1c4c179ae69956ccb8e134e2 Issue introduced in 6.14 with commit e5283bd4dfecbd3335f43b62a68e24dae23f59e4 and fixed in 7.0-rc3 with commit 3091723785def05ebfe6a50866f87a044ae314ba
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-23418
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_reg_sr.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/05e3f01974d09d1b746dedf4144f708b5033e76f https://git.kernel.org/stable/c/4f461da14c7b226d1c4c179ae69956ccb8e134e2 https://git.kernel.org/stable/c/3091723785def05ebfe6a50866f87a044ae314ba