Skip to contentSkip to conversation

CVE-2026-23296: scsi: core: Fix refcount leak for tagset_refcnt

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

scsi: core: Fix refcount leak for tagset_refcnt

This leak will cause a hang when tearing down the SCSI host. For example, iscsid hangs with the following call trace:

[130120.652718] scsi_alloc_sdev: Allocation failure during SCSI scanning, some SCSI devices might not be configured

PID: 2528 TASK: ffff9d0408974e00 CPU: 3 COMMAND: "iscsid"
#0 [ffffb5b9c134b9e0] __schedule at ffffffff860657d4
#1 [ffffb5b9c134ba28] schedule at ffffffff86065c6f
#2 [ffffb5b9c134ba40] schedule_timeout at ffffffff86069fb0
#3 [ffffb5b9c134bab0] __wait_for_common at ffffffff8606674f
#4 [ffffb5b9c134bb10] scsi_remove_host at ffffffff85bfe84b
#5 [ffffb5b9c134bb30] iscsi_sw_tcp_session_destroy at ffffffffc03031c4 [iscsi_tcp] #6 [ffffb5b9c134bb48] iscsi_if_recv_msg at ffffffffc0292692 [scsi_transport_iscsi] #7 [ffffb5b9c134bb98] iscsi_if_rx at ffffffffc02929c2 [scsi_transport_iscsi] #8 [ffffb5b9c134bbf0] netlink_unicast at ffffffff85e551d6
#9 [ffffb5b9c134bc38] netlink_sendmsg at ffffffff85e554ef

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

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

	Issue introduced in 6.0 with commit 8fe4ce5836e932f5766317cb651c1ff2a4cd0506 and fixed in 6.1.167 with commit 9f5e4abed9248448aa1b45b12ab0bea4d329b56a
	Issue introduced in 6.0 with commit 8fe4ce5836e932f5766317cb651c1ff2a4cd0506 and fixed in 6.6.130 with commit 7c01b680beaf4d3143866b062b8e770e8b237fb8
	Issue introduced in 6.0 with commit 8fe4ce5836e932f5766317cb651c1ff2a4cd0506 and fixed in 6.12.77 with commit ec5c17c687b189dbc09dfdec11b669caa40bc395
	Issue introduced in 6.0 with commit 8fe4ce5836e932f5766317cb651c1ff2a4cd0506 and fixed in 6.18.17 with commit 944a333c8e4d42256556c1d2ebb6d773a33e0dcd
	Issue introduced in 6.0 with commit 8fe4ce5836e932f5766317cb651c1ff2a4cd0506 and fixed in 6.19.7 with commit a03d96598d39fdf605d90731db3ef3b13fb8bdc8
	Issue introduced in 6.0 with commit 8fe4ce5836e932f5766317cb651c1ff2a4cd0506 and fixed in 7.0-rc3 with commit 1ac22c8eae81366101597d48360718dff9b9d980
	Issue introduced in 5.10.223 with commit 5ce8fad941233e81f2afb5b52a3fcddd3ba8732f
	Issue introduced in 5.15.164 with commit f818708eeeae793e12dc39f8984ed7732048a7d9
	Issue introduced in 5.19.12 with commit 2e7eb4c1e8af8385de22775bd0be552f59b28c9a

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

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/scsi/scsi_scan.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/9f5e4abed9248448aa1b45b12ab0bea4d329b56a
	https://git.kernel.org/stable/c/7c01b680beaf4d3143866b062b8e770e8b237fb8
	https://git.kernel.org/stable/c/ec5c17c687b189dbc09dfdec11b669caa40bc395
	https://git.kernel.org/stable/c/944a333c8e4d42256556c1d2ebb6d773a33e0dcd
	https://git.kernel.org/stable/c/a03d96598d39fdf605d90731db3ef3b13fb8bdc8
	https://git.kernel.org/stable/c/1ac22c8eae81366101597d48360718dff9b9d980