CVE-2023-54102
scsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow
Check your servers for CVE-2023-54102
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-54102 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: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow
A static code analysis tool flagged the possibility of buffer overflow when using copy_from_user() for a debugfs entry.
Currently, it is possible that copy_from_user() copies more bytes than what would fit in the mybuf char array. Add a min() restriction check between sizeof(mybuf) - 1 and nbytes passed from the userspace buffer to protect against buffer overflow.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e, before 644a9d5e22761a41d5005a26996a643da96de962 affected from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e, before e0e7faee3a7dd6f51350cda64997116a247eb045 affected from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e, before f91037487036e2d2f18d3c2481be6b9a366bde7f affected from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e, before a9df88cb31dcbd72104ec5883f35cbc1fb587e47 affected from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e, before ad050f6cf681ebb850a9d4bc19474d3896476301 affected from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e, before c6087b82a9146826564a55c5ca0164cac40348f5
Other versions: unaffected
|
| Linux |
affected 5.1 unaffected before 5.1 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-54102 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54102
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-54102
trivy image --scanners vuln IMAGE | grep CVE-2023-54102
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/644a9d5e22761a41d5005a26996a643da96de962 git.kernel.org
- https://git.kernel.org/stable/c/e0e7faee3a7dd6f51350cda64997116a247eb045 git.kernel.org
- https://git.kernel.org/stable/c/f91037487036e2d2f18d3c2481be6b9a366bde7f git.kernel.org
- https://git.kernel.org/stable/c/a9df88cb31dcbd72104ec5883f35cbc1fb587e47 git.kernel.org
- https://git.kernel.org/stable/c/ad050f6cf681ebb850a9d4bc19474d3896476301 git.kernel.org
- https://git.kernel.org/stable/c/c6087b82a9146826564a55c5ca0164cac40348f5 git.kernel.org
Source: the record CVE-2023-54102 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