CVE-2026-23087: scsi: xen: scsiback: Fix potential memory leak in scsiback_remove()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: xen: scsiback: Fix potential memory leak in scsiback_remove()
Memory allocated for struct vscsiblk_info in scsiback_probe() is not freed in scsiback_remove() leading to potential memory leaks on remove, as well as in the scsiback_probe() error paths. Fix that by freeing it in scsiback_remove().
The Linux kernel CVE team has assigned CVE-2026-23087 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.18 with commit d9d660f6e562a47b4065eeb7e538910b0471b988 and fixed in 6.6.122 with commit f86264ec0e2b102fcd49bf3e4f32fee669d482fc Issue introduced in 3.18 with commit d9d660f6e562a47b4065eeb7e538910b0471b988 and fixed in 6.12.68 with commit 32e52b56056daf0f0881fd9254706acf25b4be97 Issue introduced in 3.18 with commit d9d660f6e562a47b4065eeb7e538910b0471b988 and fixed in 6.18.8 with commit 24c441f0e24da175d7912095663f526ac480dc4f Issue introduced in 3.18 with commit d9d660f6e562a47b4065eeb7e538910b0471b988 and fixed in 6.19-rc7 with commit 901a5f309daba412e2a30364d7ec1492fa11c32c
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-23087
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/xen/xen-scsiback.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/f86264ec0e2b102fcd49bf3e4f32fee669d482fc https://git.kernel.org/stable/c/32e52b56056daf0f0881fd9254706acf25b4be97 https://git.kernel.org/stable/c/24c441f0e24da175d7912095663f526ac480dc4f https://git.kernel.org/stable/c/901a5f309daba412e2a30364d7ec1492fa11c32c