CVE-2023-54184

scsi: target: iscsit: Free cmds before session free

9.8 critical EPSS 0.61%

Published 30 Dec 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2023-54184

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54184 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.61%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.7% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 988e3a85463d9b6dabc681df3f8f131b23c19953, before 89f5055f9b0b57c7e7f02e32df95ef401f809b71
affected from 988e3a85463d9b6dabc681df3f8f131b23c19953, before 4621e24c9257c6379343bf0c11b473817cf7edcd
affected from 988e3a85463d9b6dabc681df3f8f131b23c19953, before 1911cca5916b6e106de7afa3ec0a38447158216c
affected from 988e3a85463d9b6dabc681df3f8f131b23c19953, before a7a4def6c7046e090bb10c6d550fdeb487db98ba
affected from 988e3a85463d9b6dabc681df3f8f131b23c19953, before 4ce221d295f53e6c6b835ab33181e735482c9aac
affected from 988e3a85463d9b6dabc681df3f8f131b23c19953, before d8990b5a4d065f38f35d69bcd627ec5a7f8330ca
Other versions: unaffected
Linux
affected 3.12
unaffected before 3.12
unaffected from 5.4.244 up to and including 5.4.*
unaffected from 5.10.181 up to and including 5.10.*
unaffected from 5.15.113 up to and including 5.15.*
unaffected from 6.1.30 up to and including 6.1.*
unaffected from 6.3.4 up to and including 6.3.*
unaffected 6.4 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54184 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54184

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-54184
trivy image --scanners vuln IMAGE | grep CVE-2023-54184

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-54184 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.