CVE-2025-38332 scsi: lpfc: Use memcpy() for BIOS version
A kernel panic occurs in the lpfc SCSI driver due to a false positive buffer overflow check, causing a denial of service.
- 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-2025-38332?
CVE-2025-38332 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 10 Jul 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: Use memcpy() for BIOS version
The strlcat() with FORTIFY support is triggering a panic because it thinks the target buffer will overflow although the correct target buffer size is passed in.
Anyway, instead of memset() with 0 followed by a strlcat(), just use memcpy() and ensure that the resulting buffer is NULL terminated.
BIOSVersion is only used for the lpfc_printf_log() which expects a properly terminated string.
Which versions are affected by CVE-2025-38332?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-38332?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-38332 being exploited?
There is no known exploitation of CVE-2025-38332 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-65027, BELL-CVE-2025-38332, DEBIAN-CVE-2025-38332, GHSA-c38j-rpqw-ch4h, ROOT-OS-DEBIAN-11-CVE-2025-38332, ROOT-OS-DEBIAN-12-CVE-2025-38332 and 3 more.