CVE-2023-54102 scsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow

Not scored Published Updated

A local attacker with debugfs access can trigger a buffer overflow in the lpfc SCSI driver, potentially leading to privilege escalation or system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-54102?

CVE-2023-54102 is a memory corruption vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2023-54102?

How do I fix CVE-2023-54102?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-54102 being exploited?

There is no known exploitation of CVE-2023-54102 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2023-54102, DEBIAN-CVE-2023-54102, GHSA-hpjg-jc89-xqgf, UBUNTU-CVE-2023-54102.

Is CVE-2023-54102 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free