scsi: target: iscsit: Free cmds before session free

Summary

CVECVE-2023-54184
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-30 13:16:06 UTC
Updated2026-08-04 11:16:35 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 9.8 CRITICAL from 416baaa9-dc9f-4396-8d5f-8c081fb06d67

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.004960000 probability, percentile 0.398620000 (date 2026-08-06)


VersionSourceTypeScoreSeverityVector
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 988e3a85463d9b6dabc681df3f8f131b23c19953 89f5055f9b0b57c7e7f02e32df95ef401f809b71 git Not specified
CNA Linux Linux affected 988e3a85463d9b6dabc681df3f8f131b23c19953 4621e24c9257c6379343bf0c11b473817cf7edcd git Not specified
CNA Linux Linux affected 988e3a85463d9b6dabc681df3f8f131b23c19953 1911cca5916b6e106de7afa3ec0a38447158216c git Not specified
CNA Linux Linux affected 988e3a85463d9b6dabc681df3f8f131b23c19953 a7a4def6c7046e090bb10c6d550fdeb487db98ba git Not specified
CNA Linux Linux affected 988e3a85463d9b6dabc681df3f8f131b23c19953 4ce221d295f53e6c6b835ab33181e735482c9aac git Not specified
CNA Linux Linux affected 988e3a85463d9b6dabc681df3f8f131b23c19953 d8990b5a4d065f38f35d69bcd627ec5a7f8330ca git Not specified
CNA Linux Linux affected 3.12 Not specified
CNA Linux Linux unaffected 3.12 semver Not specified
CNA Linux Linux unaffected 5.4.244 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.181 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.113 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.30 6.1.* semver Not specified
CNA Linux Linux unaffected 6.3.4 6.3.* semver Not specified
CNA Linux Linux unaffected 6.4 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/1911cca5916b6e106de7afa3ec0a38447158216c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4ce221d295f53e6c6b835ab33181e735482c9aac 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d8990b5a4d065f38f35d69bcd627ec5a7f8330ca 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/89f5055f9b0b57c7e7f02e32df95ef401f809b71 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a7a4def6c7046e090bb10c6d550fdeb487db98ba 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4621e24c9257c6379343bf0c11b473817cf7edcd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report