5.5medium
scsi: lpfc: Use memcpy() for BIOS version
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 1 more 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.* | CVE List |
| 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 | NVD |
| debian debian_linux | 11.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: lpfc: Usar memcpy() para la versión de BIOS. La función strlcat() compatible con FORTIFY genera un pánico porque cree que el búfer de destino se desbordará, aunque se haya proporcionado el tamaño correcto. En cualquier caso, en lugar de usar memset() con 0 seguido de strlcat(), simplemente use memcpy() y asegúrese de que el búfer resultante termine en NULL. BIOSVersion solo se usa para lpfc_printf_log(), que espera una cadena con la terminación correcta.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38332 changed 2026-06-11 | CVE Terms of Use |
| NVD | CVE-2025-38332 changed 2026-06-17 | Public domain |