CVE-2023-54102

scsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow

State
Published
Severity
Not scored
Published
Dec 24, 2025
Updated
May 11, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e to before 644a9d5e22761a41d5005a26996a643da96de962Affected
  • 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e to before e0e7faee3a7dd6f51350cda64997116a247eb045Affected
  • 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e to before f91037487036e2d2f18d3c2481be6b9a366bde7fAffected
  • 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e to before a9df88cb31dcbd72104ec5883f35cbc1fb587e47Affected
  • 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e to before ad050f6cf681ebb850a9d4bc19474d3896476301Affected
  • 6a828b0f6192b4930894925d1c1d0dc1f1d99e6e to before c6087b82a9146826564a55c5ca0164cac40348f5Affected
LinuxLinux
  • 5.1Affected
  • before 5.1Not affected
  • 5.4.244 through 5.4.*Not affected
  • 5.10.181 through 5.10.*Not affected
  • 5.15.113 through 5.15.*Not affected
  • 6.1.30 through 6.1.*Not affected
  • 6.3.4 through 6.3.*Not affected
  • 6.4 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.