Linux Kernel SCSI LPFC Buffer Overflow Vulnerability in DebugFS Entry

Vulnerability

A buffer overflow vulnerability has been identified in the Linux kernel's SCSI LPFC driver. The issue arises in the 'lpfc_debugfs_lockstat_write' function, where 'copy_from_user' is used to read data from a userspace buffer into a fixed-size character array. This operation can potentially lead to a buffer overflow by copying more bytes than the array can safely hold. The vulnerability affects several versions of the Linux kernel.

Impact

Exploitation of this vulnerability could lead to a buffer overflow, which may allow for arbitrary code execution or cause memory corruption.

Reproduction

The vulnerability can be reproduced by writing data to the 'lpfc_debugfs_lockstat' debugfs entry. The 'copy_from_user' function will then read the data into a buffer that is not properly sized, leading to a buffer overflow.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched. The commit ID for the patch is 'c6087b82a9146826564a55c5ca0164cac40348f5'.

Added: Dec 24, 2025, 3:34 PM
Updated: Dec 24, 2025, 3:34 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.