Skip to contentSkip to conversation

CVE-2026-97951: scsi: target: iscsi: Fix hang for aborted WRITE_PENDING commands

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 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: target: iscsi: Fix hang for aborted WRITE_PENDING commands

When a LUN_RESET aborts a WRITE command that is in the TRANSPORT_WRITE_PENDING state, the target core sets CMD_T_ABORTED and waits for the frontend to finish processing.

If the initiator subsequently sends the remaining dataout PDUs, __iscsit_check_dataout_hdr() catches the payload, stops the dataout timer if the sequence is final and finally dumps the data. However, the iSCSI target doesn't trigger the completion process for these aborted commands. Because of this, the abort path hangs indefinitely in target_put_cmd_and_wait(), leading to a deadlocked target worker thread.

Fix this by explicitly calling target_complete_cmd() when the final dataout PDU is received for an aborted WRITE command. target_complete_cmd() detects the CMD_T_ABORTED flag and cleanly routes the command into target_abort_work, allowing the abort completion to successfully unblock.

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

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

	Fixed in 6.12.111 with commit 638cf7c0cf64d5bb5704c3a78b54ae6602f69a32
	Fixed in 6.18.53 with commit f6f6351e98c77c27b51763ef52deb2efe4b46ac7
	Fixed in 7.2.7 with commit 37f7f54d06c6100511979d6e9c1222b404e3f006
	Fixed in 7.3-rc2 with commit d5869dae5080e976d4b03cc33eb7ceb527f242bf

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

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/target/iscsi/iscsi_target.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/638cf7c0cf64d5bb5704c3a78b54ae6602f69a32
	https://git.kernel.org/stable/c/f6f6351e98c77c27b51763ef52deb2efe4b46ac7
	https://git.kernel.org/stable/c/37f7f54d06c6100511979d6e9c1222b404e3f006
	https://git.kernel.org/stable/c/d5869dae5080e976d4b03cc33eb7ceb527f242bf