CVE-2023-54102

published 24 Dec 2025 · updated 11 May 2026

scsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 644a9d5e22761a41d5005a26996a643da96de962, Kernel a9df88cb31dcbd72104ec5883f35cbc1fb587e47, Kernel ad050f6cf681ebb850a9d4bc19474d3896476301 and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.1, >=6a828b0f6192b4930894925d1c1d0dc1f1d99e6e <644a9d5e22761a41d5005a26996a643da96de962, >=6a828b0f6192b4930894925d1c1d0dc1f1d99e6e <a9df88cb31dcbd72104ec5883f35cbc1fb587e47, >=6a828b0f6192b4930894925d1c1d0dc1f1d99e6e <ad050f6cf681ebb850a9d4bc19474d3896476301, >=6a828b0f6192b4930894925d1c1d0dc1f1d99e6e <c6087b82a9146826564a55c5ca0164cac40348f5, >=6a828b0f6192b4930894925d1c1d0dc1f1d99e6e <e0e7faee3a7dd6f51350cda64997116a247eb045, >=6a828b0f6192b4930894925d1c1d0dc1f1d99e6e <f91037487036e2d2f18d3c2481be6b9a366bde7f644a9d5e22761a41d5005a26996a643da96de962, a9df88cb31dcbd72104ec5883f35cbc1fb587e47, ad050f6cf681ebb850a9d4bc19474d3896476301, c6087b82a9146826564a55c5ca0164cac40348f5, e0e7faee3a7dd6f51350cda64997116a247eb045, f91037487036e2d2f18d3c2481be6b9a366bde7f

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-54102 severity on Zeptric[![CVE-2023-54102](https://zeptric.io/badge/cve/CVE-2023-54102.svg)](https://zeptric.io/cve/CVE-2023-54102)