{"id":"CVE-2023-54102","aliases":["CVE-2023-54102"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow\n\nA static code analysis tool flagged the possibility of buffer overflow when\nusing copy_from_user() for a debugfs entry.\n\nCurrently, it is possible that copy_from_user() copies more bytes than what\nwould fit in the mybuf char array.  Add a min() restriction check between\nsizeof(mybuf) - 1 and nbytes passed from the userspace buffer to protect\nagainst buffer overflow.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow\n\nA static code analysis tool flagged the possibility of buffer overflow when\nusing copy_from_user() for a debugfs entry.\n\nCurrently, it is possible that copy_from_user() copies more bytes than what\nwould fit in the mybuf char array.  Add a min() restriction check between\nsizeof(mybuf) - 1 and nbytes passed from the userspace buffer to protect\nagainst buffer overflow.","source":"cvelist"}],"published":"2025-12-24T13:06:27.915Z","modified":"2026-06-17T06:46:48.390Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6a828b0f6192b4930894925d1c1d0dc1f1d99e6e","fixed":"644a9d5e22761a41d5005a26996a643da96de962","status":"affected"},{"type":"git","introduced":"6a828b0f6192b4930894925d1c1d0dc1f1d99e6e","fixed":"e0e7faee3a7dd6f51350cda64997116a247eb045","status":"affected"},{"type":"git","introduced":"6a828b0f6192b4930894925d1c1d0dc1f1d99e6e","fixed":"f91037487036e2d2f18d3c2481be6b9a366bde7f","status":"affected"},{"type":"git","introduced":"6a828b0f6192b4930894925d1c1d0dc1f1d99e6e","fixed":"a9df88cb31dcbd72104ec5883f35cbc1fb587e47","status":"affected"},{"type":"git","introduced":"6a828b0f6192b4930894925d1c1d0dc1f1d99e6e","fixed":"ad050f6cf681ebb850a9d4bc19474d3896476301","status":"affected"},{"type":"git","introduced":"6a828b0f6192b4930894925d1c1d0dc1f1d99e6e","fixed":"c6087b82a9146826564a55c5ca0164cac40348f5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.1","status":"unaffected"},{"type":"semver","introduced":"5.4.244","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.181","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.113","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.30","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.3.4","lastAffected":"6.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.4","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/644a9d5e22761a41d5005a26996a643da96de962","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0e7faee3a7dd6f51350cda64997116a247eb045","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f91037487036e2d2f18d3c2481be6b9a366bde7f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a9df88cb31dcbd72104ec5883f35cbc1fb587e47","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ad050f6cf681ebb850a9d4bc19474d3896476301","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6087b82a9146826564a55c5ca0164cac40348f5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54102","url":"https://www.cve.org/CVERecord?id=CVE-2023-54102","licence":"CVE Terms of Use","modified":"2026-05-11T19:55:31.921Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54102","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54102","licence":"Public domain","modified":"2026-06-17T06:46:48.390Z"}],"updatedAt":"2026-11-25T22:58:35.176Z","epss":{"score":0.00253,"percentile":0.18019,"date":"2026-12-01T12:00:22.000Z"}}