# CVE-2023-54102: scsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-12-24T13:06:27.915Z
- Modified: 2026-06-17T06:46:48.390Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e before 644a9d5e22761a41d5005a26996a643da96de962; from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e before e0e7faee3a7dd6f51350cda64997116a247eb045; from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e before f91037487036e2d2f18d3c2481be6b9a366bde7f; from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e before a9df88cb31dcbd72104ec5883f35cbc1fb587e47; from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e before ad050f6cf681ebb850a9d4bc19474d3896476301; from 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e before c6087b82a9146826564a55c5ca0164cac40348f5; 5.1 (not affected: before 5.1; from 5.4.244 up to 5.4.*; from 5.10.181 up to 5.10.*; from 5.15.113 up to 5.15.*; from 6.1.30 up to 6.1.*; from 6.3.4 up to 6.3.*; from 6.4 up to *)

## References

- <https://git.kernel.org/stable/c/644a9d5e22761a41d5005a26996a643da96de962>
- <https://git.kernel.org/stable/c/e0e7faee3a7dd6f51350cda64997116a247eb045>
- <https://git.kernel.org/stable/c/f91037487036e2d2f18d3c2481be6b9a366bde7f>
- <https://git.kernel.org/stable/c/a9df88cb31dcbd72104ec5883f35cbc1fb587e47>
- <https://git.kernel.org/stable/c/ad050f6cf681ebb850a9d4bc19474d3896476301>
- <https://git.kernel.org/stable/c/c6087b82a9146826564a55c5ca0164cac40348f5>

## Sources

- CVE List: [CVE-2023-54102](https://www.cve.org/CVERecord?id=CVE-2023-54102), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-54102](https://nvd.nist.gov/vuln/detail/CVE-2023-54102), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-54102 · Whole record: https://cve.day/CVE-2023-54102.json · Rebuilt by cve.day 2026-11-25T22:58:35.176Z
