# CVE-2023-54184: scsi: target: iscsit: Free cmds before session free

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.87% (percentile 56, 2026-11-26)
- **Published:** 2025-12-30T12:08:54.528Z
- **Modified:** 2026-08-05T09:17:52.229Z

## Who should check

- Anyone running Linux \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 89f5055f9b0b57c7e7f02e32df95ef401f809b71; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 4621e24c9257c6379343bf0c11b473817cf7edcd; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 1911cca5916b6e106de7afa3ec0a38447158216c; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< a7a4def6c7046e090bb10c6d550fdeb487db98ba; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 4ce221d295f53e6c6b835ab33181e735482c9aac; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< d8990b5a4d065f38f35d69bcd627ec5a7f8330ca
- Anyone running Linux 3.12

## 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.

## Affected and fixed versions

- Linux: \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 89f5055f9b0b57c7e7f02e32df95ef401f809b71; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 4621e24c9257c6379343bf0c11b473817cf7edcd; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 1911cca5916b6e106de7afa3ec0a38447158216c; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< a7a4def6c7046e090bb10c6d550fdeb487db98ba; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 4ce221d295f53e6c6b835ab33181e735482c9aac; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< d8990b5a4d065f38f35d69bcd627ec5a7f8330ca (cvelist)
- Linux: 3.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54184. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54184.md
Affected: Linux >= 988e3a85463d9b6dabc681df3f8f131b23c19953, < 89f5055f9b0b57c7e7f02e32df95ef401f809b71; >= 988e3a85463d9b6dabc681df3f8f131b23c19953, < 4621e24c9257c6379343bf0c11b473817cf7edcd; >= 988e3a85463d9b6dabc681df3f8f131b23c19953, < 1911cca5916b6e106de7afa3ec0a38447158216c; >= 988e3a85463d9b6dabc681d…
Fixed in: Linux 89f5055f9b0b57c7e7f02e32df95ef401f809b71, Linux 4621e24c9257c6379343bf0c11b473817cf7edcd, Linux 1911cca5916b6e106de7afa3ec0a38447158216c, Linux 4ce221d295f53e6c6b835ab33181e735482c9aac

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54184 being exploited?

There is no confirmed exploitation: CVE-2023-54184 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.87% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54184?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-54184?

Linux \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 89f5055f9b0b57c7e7f02e32df95ef401f809b71; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 4621e24c9257c6379343bf0c11b473817cf7edcd; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 1911cca5916b6e106de7afa3ec0a38447158216c; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< a7a4def6c7046e090bb10c6d550fdeb487db98ba; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< 4ce221d295f53e6c6b835ab33181e735482c9aac; \>= 988e3a85463d9b6dabc681df3f8f131b23c19953, \< d8990b5a4d065f38f35d69bcd627ec5a7f8330ca; Linux 3.12.

### Is there a fix for CVE-2023-54184?

Yes. Fixed in Linux 89f5055f9b0b57c7e7f02e32df95ef401f809b71, Linux 4621e24c9257c6379343bf0c11b473817cf7edcd, Linux 1911cca5916b6e106de7afa3ec0a38447158216c, Linux 4ce221d295f53e6c6b835ab33181e735482c9aac. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54184?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/89f5055f9b0b57c7e7f02e32df95ef401f809b71>
- other: <https://git.kernel.org/stable/c/4621e24c9257c6379343bf0c11b473817cf7edcd>
- other: <https://git.kernel.org/stable/c/1911cca5916b6e106de7afa3ec0a38447158216c>
- other: <https://git.kernel.org/stable/c/a7a4def6c7046e090bb10c6d550fdeb487db98ba>
- other: <https://git.kernel.org/stable/c/4ce221d295f53e6c6b835ab33181e735482c9aac>
- other: <https://git.kernel.org/stable/c/d8990b5a4d065f38f35d69bcd627ec5a7f8330ca>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54184>

HTML: <https://flawdb.com/CVE-2023-54184> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54184>
