# CVE-2025-38332: scsi: lpfc: Use memcpy() for BIOS version

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-07-10T08:15:05.102Z
- Modified: 2026-06-17T09:16:38.507Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from b3b4f3e1d575fe142fd437158425c2359b695ff1 before ac7bfaa099ec3e4d7dfd0ab9726fc3bc7911365d; from b3b4f3e1d575fe142fd437158425c2359b695ff1 before b699bda5db818b684ff62d140defd6394f38f3d6; from b3b4f3e1d575fe142fd437158425c2359b695ff1 before d34f2384d6df11a6c67039b612c2437f46e587e8; from b3b4f3e1d575fe142fd437158425c2359b695ff1 before 75ea8375c5a83f46c47bfb3de6217c7589a8df93; from b3b4f3e1d575fe142fd437158425c2359b695ff1 before 34c0a670556b24d36c9f8934227edb819ca5609e; from b3b4f3e1d575fe142fd437158425c2359b695ff1 before 2f63bf0d2b146956a2f2ff3b25cee71019e64561; from b3b4f3e1d575fe142fd437158425c2359b695ff1 before 003baa7a1a152576d744bd655820449bbdb0248e; from b3b4f3e1d575fe142fd437158425c2359b695ff1 before ae82eaf4aeea060bb736c3e20c0568b67c701d7d; 5.2 (not affected: before 5.2; from 5.4.295 up to 5.4.*; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.95 up to 6.6.*; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: before 5.4.295; from 5.5 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.95; from 6.7 before 6.12.35; from 6.13 before 6.15.4
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/ac7bfaa099ec3e4d7dfd0ab9726fc3bc7911365d> (patch)
- <https://git.kernel.org/stable/c/b699bda5db818b684ff62d140defd6394f38f3d6> (patch)
- <https://git.kernel.org/stable/c/d34f2384d6df11a6c67039b612c2437f46e587e8> (patch)
- <https://git.kernel.org/stable/c/75ea8375c5a83f46c47bfb3de6217c7589a8df93> (patch)
- <https://git.kernel.org/stable/c/34c0a670556b24d36c9f8934227edb819ca5609e> (patch)
- <https://git.kernel.org/stable/c/2f63bf0d2b146956a2f2ff3b25cee71019e64561> (patch)
- <https://git.kernel.org/stable/c/003baa7a1a152576d744bd655820449bbdb0248e> (patch)
- <https://git.kernel.org/stable/c/ae82eaf4aeea060bb736c3e20c0568b67c701d7d> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38332](https://www.cve.org/CVERecord?id=CVE-2025-38332), CVE Terms of Use, modified 2026-06-11
- NVD: [CVE-2025-38332](https://nvd.nist.gov/vuln/detail/CVE-2025-38332), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38332 · Whole record: https://cve.day/CVE-2025-38332.json · Rebuilt by cve.day 2026-11-25T22:59:01.080Z
