Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4F6C22D4C8 for ; Tue, 30 Dec 2025 12:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096662; cv=none; b=FgL+DCB5c7a7DONW1KLZefwOOjzzI7ogZ89kCzGmADWeQyyG4CDflyRICfiyNLKBzdFTjeuWEJVjUiGQntMh5nQVoAw/JOqzzSVgtGRAkjzue/by76dgOfPRX4vDsLJNSF0fIc7V/KE8Na3dUE87MS6wvKWkaaqr/GjPDjbpa74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096662; c=relaxed/simple; bh=eKJU5hKn0uQqA9gY+tKE06AgDRqiuV2kST8qirP9oe0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AjXzdOKqrfk9qvJamsCELtqcFU131OOM6+mlzEYbGzuhYhZn5JThrrZtHDtqDL6ubPTXM6LYpDN+/dySCH/G3f093nfr7ufses4KBO6YHIPGzVck35yQhgk9RLy7eTk8q/MhVeEES99GclnZLv16RABMtXqIUL3YL1/Mm4cxXLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QP6QjK1C; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QP6QjK1C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 532C4C4CEFB; Tue, 30 Dec 2025 12:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096662; bh=eKJU5hKn0uQqA9gY+tKE06AgDRqiuV2kST8qirP9oe0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QP6QjK1CVD02Ko22/NqkN1SOWJLlD6gSn5py5bsaLCNRt/jQWsIszRqOiKCP6Z73J cpEWAh83PvY01bDXfRycyGFe8Un0Q0sMQe4osSGjXGs7NfjF7gOyIbNGrHZYmBQeTl OSD+lmwTqRJpTv24gcm4rdT6Pjq50J6q4wX4CoL0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54184: scsi: target: iscsit: Free cmds before session free Date: Tue, 30 Dec 2025 13:09:52 +0100 Message-ID: <2025123025-CVE-2023-54184-e958@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2962; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=54ID6a61/a2A7bu7kbdWIT04USyiQKa34/6jxi9D0Qk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB746b1oWlN18+frd2wZKrsd/xLmdWv6beVlI/uSzP 7/PtHlf0BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATEbBhWHBKY0fswQOHLVx7 t1y50zMzp/6vcjXD/OAH83Xal3It3nhfwHOXrl3V1N93qgE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsit: Free cmds before session free Commands from recovery entries are freed after session has been closed. That leads to use-after-free at command free or NPE with such call trace: Time2Retain timer expired for SID: 1, cleaning up iSCSI session. BUG: kernel NULL pointer dereference, address: 0000000000000140 RIP: 0010:sbitmap_queue_clear+0x3a/0xa0 Call Trace: target_release_cmd_kref+0xd1/0x1f0 [target_core_mod] transport_generic_free_cmd+0xd1/0x180 [target_core_mod] iscsit_free_cmd+0x53/0xd0 [iscsi_target_mod] iscsit_free_connection_recovery_entries+0x29d/0x320 [iscsi_target_mod] iscsit_close_session+0x13a/0x140 [iscsi_target_mod] iscsit_check_post_dataout+0x440/0x440 [iscsi_target_mod] call_timer_fn+0x24/0x140 Move cleanup of recovery enrties to before session freeing. The Linux kernel CVE team has assigned CVE-2023-54184 to this issue. Affected and fixed versions =========================== Fixed in 5.4.244 with commit 89f5055f9b0b57c7e7f02e32df95ef401f809b71 Fixed in 5.10.181 with commit 4621e24c9257c6379343bf0c11b473817cf7edcd Fixed in 5.15.113 with commit 1911cca5916b6e106de7afa3ec0a38447158216c Fixed in 6.1.30 with commit a7a4def6c7046e090bb10c6d550fdeb487db98ba Fixed in 6.3.4 with commit 4ce221d295f53e6c6b835ab33181e735482c9aac Fixed in 6.4 with commit d8990b5a4d065f38f35d69bcd627ec5a7f8330ca 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-2023-54184 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/89f5055f9b0b57c7e7f02e32df95ef401f809b71 https://git.kernel.org/stable/c/4621e24c9257c6379343bf0c11b473817cf7edcd https://git.kernel.org/stable/c/1911cca5916b6e106de7afa3ec0a38447158216c https://git.kernel.org/stable/c/a7a4def6c7046e090bb10c6d550fdeb487db98ba https://git.kernel.org/stable/c/4ce221d295f53e6c6b835ab33181e735482c9aac https://git.kernel.org/stable/c/d8990b5a4d065f38f35d69bcd627ec5a7f8330ca