CVE-2026-97951

Summary

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.

Affected Software

VendorProductVersion RangeStatus
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 638cf7c0cf64d5bb5704c3a78b54ae6602f69a32affected
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < f6f6351e98c77c27b51763ef52deb2efe4b46ac7affected
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 37f7f54d06c6100511979d6e9c1222b404e3f006affected
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < d5869dae5080e976d4b03cc33eb7ceb527f242bfaffected
LinuxLinux0 < 6.12.111affected
LinuxLinux0 < 6.18.53affected
LinuxLinux0 < 7.2.7affected
LinuxLinux6.12.111 <= 6.12.*unaffected
LinuxLinux6.18.53 <= 6.18.*unaffected
LinuxLinux7.2.7 <= 7.2.*unaffected
LinuxLinux7.3-rc2 <= *unaffected

Weaknesses

References