Bug 2379246 (CVE-2025-38332) - CVE-2025-38332 kernel: scsi: lpfc: Use memcpy() for BIOS version
Summary: CVE-2025-38332 kernel: scsi: lpfc: Use memcpy() for BIOS version
Keywords:
Status: NEW
Alias: CVE-2025-38332
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-10 09:02 UTC by OSIDB Bzimport
Modified: 2025-07-11 05:26 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-10 09:02:40 UTC
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.

Comment 1 Avinash Hanwate 2025-07-11 05:17:31 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025071033-CVE-2025-38332-9590@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.