CVE-2023-54154
scsi: target: core: Fix target_cmd_counter leak
Check your servers for CVE-2023-54154
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-54154 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.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.1% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 76b77646f17118f5babe93c032e6b7a53bbde3b9, before 1cd41d1669bcbc5052afa897f85608a62ff3fb30 affected from becd9be6069e7b183c084f460f0eb363e43cc487, before f84639c5ac5f4f95b3992da1af4ff382ebf2e819 affected from becd9be6069e7b183c084f460f0eb363e43cc487, before d14e3e553e05cb763964c991fe6acb0a6a1c6f9c affected bc5ebf93ae23a928303b3643c6f4c4da2f769e7c affected 1eaaf1b828cdaa58abccc68962d24005fd5e8852 affected from 6.1.28, before 6.1.55 affected from 6.2.15, before 6.3 affected from 6.3.2, before 6.4
Other versions: unaffected
|
| Linux |
affected 6.4 unaffected before 6.4 unaffected from 6.1.55 up to and including 6.1.* unaffected from 6.5.5 up to and including 6.5.* unaffected 6.6 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-54154 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54154
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-54154
trivy image --scanners vuln IMAGE | grep CVE-2023-54154
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
- https://git.kernel.org/stable/c/1cd41d1669bcbc5052afa897f85608a62ff3fb30 git.kernel.org
- https://git.kernel.org/stable/c/f84639c5ac5f4f95b3992da1af4ff382ebf2e819 git.kernel.org
- https://git.kernel.org/stable/c/d14e3e553e05cb763964c991fe6acb0a6a1c6f9c git.kernel.org
Source: the record CVE-2023-54154 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.
Vulnpocalypse