CVE-2023-54102
Unknown Unknown - Not Provided
Buffer Overflow in Linux lpfc Debugfs Allows Memory Corruption

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-05-07
AI Q&A
2025-12-24
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a buffer overflow issue in the Linux kernel's lpfc driver, specifically in the lpfc_debugfs_lockstat_write() function. The problem arises because the copy_from_user() function can copy more bytes from user space than the size of the destination buffer (mybuf), potentially causing a buffer overflow. The fix involves adding a check to limit the number of bytes copied to the size of the buffer minus one, preventing overflow.


How can this vulnerability impact me? :

A buffer overflow vulnerability can lead to memory corruption, which attackers might exploit to cause system crashes, execute arbitrary code, or escalate privileges. In this case, if exploited, it could compromise the stability and security of the Linux kernel on affected systems.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, update your Linux kernel to a version where the lpfc_debugfs_lockstat_write() buffer overflow has been fixed. This involves applying the patch that adds a min() restriction check to prevent buffer overflow in the lpfc driver. Until the update is applied, avoid using the vulnerable debugfs entry to prevent exploitation.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart