CVE-2023-54154
scsi: target: core: Fix target_cmd_counter leak
Mitigation
- Upgrade Linux to 6.4 or later.
Who should check
- Anyone running Linux >= 76b77646f17118f5babe93c032e6b7a53bbde3b9, < 1cd41d1669bcbc5052afa897f85608a62ff3fb30; >= becd9be6069e7b183c084f460f0eb363e43cc487, < f84639c5ac5f4f95b3992da1af4ff382ebf2e819; >= becd9be6069e7b183c084f460f0eb363e43cc487, < d14e3e553e05cb763964c991fe6acb0a6a1c6f9c; bc5ebf93ae23a928303b3643c6f4c4da2f769e7c; 1eaaf1b828cdaa58abccc68962d24005fd5e8852; >= 6.1.28, < 6.1.55; >= 6.2.15, < 6.3; >= 6.3.2, < 6.4
- Anyone running Linux 6.4
Vulnerability facts
- Affected
- Linux >= 76b77646f17118f5babe93c032e6b7a53bbde3b9, < 1cd41d1669bcbc5052afa897f85608a62ff3fb30; >= becd9be6069e7b183c084f460f0eb363e43cc487, < f84639c5ac5f4f95b3992da1af4ff382ebf2e819; >= becd9be6069e7b183c084f460f0eb363e43cc487, < d14e3e553e05cb763964c991fe6acb0a6a1c6f9c; bc5ebf93ae23a928303b3643c6f4c4da2f769e7c; 1eaaf1b828cdaa58abccc68962d24005fd5e8852; >= 6.1.28, < 6.1.55; >= 6.2.15, < 6.3; >= 6.3.2, < 6.4; Linux 6.4
- Fixed in
- Linux 1cd41d1669bcbc5052afa897f85608a62ff3fb30, Linux 6.1.55, Linux 6.3, Linux 6.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: target: core: Fix target_cmd_counter leak The target_cmd_counter struct allocated via target_alloc_cmd_counter() is never freed, resulting in leaks across various transport types, e.g.: unreferenced object 0xffff88801f920120 (size 96): comm "sh", pid 102, jiffies 4294892535 (age 713.412s) hex dump (first 32 bytes): 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 38 01 92 1f 80 88 ff ff ........8....... backtrace: [<00000000e58a6252>] kmalloc_trace+0x11/0x20 [<0000000043af4b2f>] target_alloc_cmd_counter+0x17/0x90 [target_core_mod] [<000000007da2dfa7>] target_setup_session+0x2d/0x140 [target_core_mod] [<0000000068feef86>] tcm_loop_tpg_nexus_store+0x19b/0x350 [tcm_loop] [<000000006a80e021>] configfs_write_iter+0xb1/0x120 [<00000000e9f4d860>] vfs_write+0x2e4/0x3c0 [<000000008143433b>] ksys_write+0x80/0xb0 [<00000000a7df29b2>] do_syscall_64+0x42/0x90 [<0000000053f45fb8>] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 Free the structure alongside the corresponding iscsit_conn / se_sess parent.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 76b77646f17118f5babe93c032e6b7a53bbde3b9, < 1cd41d1669bcbc5052afa897f85608a62ff3fb30; >= becd9be6069e7b183c084f460f0eb363e43cc487, < f84639c5ac5f4f95b3992da1af4ff382ebf2e819; >= becd9be6069e7b183c084f460f0eb363e43cc487, < d14e3e553e05cb763964c991fe6acb0a6a1c6f9c; bc5ebf93ae23a928303b3643c6f4c4da2f769e7c; 1eaaf1b828cdaa58abccc68962d24005fd5e8852; >= 6.1.28, < 6.1.55; >= 6.2.15, < 6.3; >= 6.3.2, < 6.4 | — | cvelist |
| Linux | 6.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-54154. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-54154.md Affected: Linux >= 76b77646f17118f5babe93c032e6b7a53bbde3b9, < 1cd41d1669bcbc5052afa897f85608a62ff3fb30; >= becd9be6069e7b183c084f460f0eb363e43cc487, < f84639c5ac5f4f95b3992da1af4ff382ebf2e819; >= becd9be6069e7b183c084f460f0eb363e43cc487, < d14e3e553e05cb763964c991fe6acb0a6a1c6f9c; bc5ebf93ae23a928303b3643c6… Fixed in: Linux 1cd41d1669bcbc5052afa897f85608a62ff3fb30, Linux 6.1.55, Linux 6.3, Linux 6.4 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.
References
FAQ
Is CVE-2023-54154 being exploited?
There is no confirmed exploitation: CVE-2023-54154 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-54154?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2023-54154?
Linux >= 76b77646f17118f5babe93c032e6b7a53bbde3b9, < 1cd41d1669bcbc5052afa897f85608a62ff3fb30; >= becd9be6069e7b183c084f460f0eb363e43cc487, < f84639c5ac5f4f95b3992da1af4ff382ebf2e819; >= becd9be6069e7b183c084f460f0eb363e43cc487, < d14e3e553e05cb763964c991fe6acb0a6a1c6f9c; bc5ebf93ae23a928303b3643c6f4c4da2f769e7c; 1eaaf1b828cdaa58abccc68962d24005fd5e8852; >= 6.1.28, < 6.1.55; >= 6.2.15, < 6.3; >= 6.3.2, < 6.4; Linux 6.4.
Is there a fix for CVE-2023-54154?
Yes. Fixed in Linux 1cd41d1669bcbc5052afa897f85608a62ff3fb30, Linux 6.1.55, Linux 6.3, Linux 6.4. Upgrade Linux to 6.4 or later.
How do I check if I'm affected by CVE-2023-54154?
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.