Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0CAB242D7D for ; Thu, 10 Jul 2025 08:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752135353; cv=none; b=pksvsHSmRM3zF7UB9mtxfh1rMDFvfGcxBbBZVa/Mq0+2CrcuKg7uIBmXQ+DWU+WaE5ojDSDyIHD9xeNZamaujz0ZePlbv0Kp0Qu7ep7peTcIoGa674M6OK0p8P8UXP7wo2R4MgmRfyaIwBFDe9C8tuh5wK4TsHm8U+hK8wGQokU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752135353; c=relaxed/simple; bh=IXMw2nRRetb4Q5AiQhXnk4y4ZSoPjCYAjemHOGvMSIg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ojpz60fwjSYstKtrYS3B0MlUpCIKwdZ0qbVgY/EXuCgk22fzN6k11Tonbz8joPTDAP/2hNvvZn7oe6PKj5YqBHdNIuRnBKrDGV6bwhxQj6+wjmTAnC7QqA2Ojs5Vdykj/N5JYon7IasBR7PFLenqaNQ4BqfrXTJ/XKF/znsclvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wje7qkzs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wje7qkzs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1CA8C4CEF4; Thu, 10 Jul 2025 08:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752135353; bh=IXMw2nRRetb4Q5AiQhXnk4y4ZSoPjCYAjemHOGvMSIg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wje7qkzsT7Qn72mjjvLqsMy17b2lasNf7WBTwZxlfIkfoJyTcCjii70oxZ+8RPumk dNrvEjb4I/m+s9tBvG8yt8Br1/QiQOsms0jfDRmmq5lP9aOk4Sfc17Db4PVXT5AHPf Yymp6hGZ8K11D2zuFkqeHSqV88STyqTxmV35wn4Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38332: scsi: lpfc: Use memcpy() for BIOS version Date: Thu, 10 Jul 2025 10:15:40 +0200 Message-ID: <2025071033-CVE-2025-38332-9590@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2876; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uEa0HIHjstmb3kc6hfGt25P/NKLgCQ/C0gi+f6EBvdc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5ZUsfZDmcu3r2vPGr7AJlydVKDip1u8T5Nvdd3Hg8f vOK+LssHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRg4sY5qn3+3QGLpuQ2pqg vPvQo/N8aW/vljLMs3J83sQ210h/P1/OV4W15RHiq/JsAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-38332 to this issue. Affected and fixed versions =========================== Fixed in 5.4.295 with commit ac7bfaa099ec3e4d7dfd0ab9726fc3bc7911365d Fixed in 5.10.239 with commit b699bda5db818b684ff62d140defd6394f38f3d6 Fixed in 5.15.186 with commit d34f2384d6df11a6c67039b612c2437f46e587e8 Fixed in 6.1.142 with commit 75ea8375c5a83f46c47bfb3de6217c7589a8df93 Fixed in 6.6.95 with commit 34c0a670556b24d36c9f8934227edb819ca5609e Fixed in 6.12.35 with commit 2f63bf0d2b146956a2f2ff3b25cee71019e64561 Fixed in 6.15.4 with commit 003baa7a1a152576d744bd655820449bbdb0248e Fixed in 6.16-rc1 with commit ae82eaf4aeea060bb736c3e20c0568b67c701d7d Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-38332 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/scsi/lpfc/lpfc_sli.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ac7bfaa099ec3e4d7dfd0ab9726fc3bc7911365d https://git.kernel.org/stable/c/b699bda5db818b684ff62d140defd6394f38f3d6 https://git.kernel.org/stable/c/d34f2384d6df11a6c67039b612c2437f46e587e8 https://git.kernel.org/stable/c/75ea8375c5a83f46c47bfb3de6217c7589a8df93 https://git.kernel.org/stable/c/34c0a670556b24d36c9f8934227edb819ca5609e https://git.kernel.org/stable/c/2f63bf0d2b146956a2f2ff3b25cee71019e64561 https://git.kernel.org/stable/c/003baa7a1a152576d744bd655820449bbdb0248e https://git.kernel.org/stable/c/ae82eaf4aeea060bb736c3e20c0568b67c701d7d