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 B95C734845E for ; Wed, 24 Dec 2025 13:11:07 +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=1766581869; cv=none; b=BxkWG6GAh8pptj2mUNfZgfz9w1bZZmdyH951jPVh0RkEYF+7433kM3cSfKQ68sTAxckOjDmtVCmYZoXF6vG0AZIQ9y3sBbAdUBE8/cr2fXXU5uvbcZEPyaACwco4MALig+y/5lIgwUcqt4ZSOVAh80BGLp24MXdeDK/Y8mlqE8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581869; c=relaxed/simple; bh=V8MS+lD2kROOqpQIImZKy+doTbrmX8EDrJJPvJkVfQY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GTmBbBkyvxasNd1u1qq+6dz4JdOfXiqYBLUCN+dSsWOp/+sPsEBotLbKkgnM7rq5hvN24jxu7MB4Gt/j7B08xZpdlDMXVP38z4mHznbo0fuVlNElaxX9yz7VpwK3KQBu2M5UfwcHaFZI7q9Vmoamf5i+FYnOzXpFY1Zo3siziTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YcJ3M+qB; 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="YcJ3M+qB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6DD1C4CEFB; Wed, 24 Dec 2025 13:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581867; bh=V8MS+lD2kROOqpQIImZKy+doTbrmX8EDrJJPvJkVfQY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=YcJ3M+qBH4tUn5LVr1Mxp/5kPz6bZnp2oYAZgpERd0apEcxjexXZ+zLbs/FjmiEIf nIhjj6I6wvc8pPh2vjt044HJjwPQM3CzeVcFI/ST82iUDBiSnK00Q4knZtiD7xBcYH d2vX7IFaBsxuyoxde9atu/bX4KJoanwHAKpk/Ttc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54102: scsi: lpfc: Prevent lpfc_debugfs_lockstat_write() buffer overflow Date: Wed, 24 Dec 2025 14:06:59 +0100 Message-ID: <2025122410-CVE-2023-54102-7dd5@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2578; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y3IDEOhgJPWHQXbdRDvxPRLTAQcLWFe9cxPg/efzYsU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT51yOr1SssONK0I2X5x9Y8on3ScLrWwuduiv1GPqk 1kV++NxRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk4mWGBf0rmMU3cN5asMmm bX3juh2eauf//2GY7x9W/eCczMvTYp9CE7VPbEicriDHAAA= 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: Prevent lpfc_debugfs_lockstat_write() buffer overflow A static code analysis tool flagged the possibility of buffer overflow when using copy_from_user() for a debugfs entry. Currently, it is possible that copy_from_user() copies more bytes than what would fit in the mybuf char array. Add a min() restriction check between sizeof(mybuf) - 1 and nbytes passed from the userspace buffer to protect against buffer overflow. The Linux kernel CVE team has assigned CVE-2023-54102 to this issue. Affected and fixed versions =========================== Fixed in 5.4.244 with commit 644a9d5e22761a41d5005a26996a643da96de962 Fixed in 5.10.181 with commit e0e7faee3a7dd6f51350cda64997116a247eb045 Fixed in 5.15.113 with commit f91037487036e2d2f18d3c2481be6b9a366bde7f Fixed in 6.1.30 with commit a9df88cb31dcbd72104ec5883f35cbc1fb587e47 Fixed in 6.3.4 with commit ad050f6cf681ebb850a9d4bc19474d3896476301 Fixed in 6.4 with commit c6087b82a9146826564a55c5ca0164cac40348f5 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-2023-54102 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_debugfs.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/644a9d5e22761a41d5005a26996a643da96de962 https://git.kernel.org/stable/c/e0e7faee3a7dd6f51350cda64997116a247eb045 https://git.kernel.org/stable/c/f91037487036e2d2f18d3c2481be6b9a366bde7f https://git.kernel.org/stable/c/a9df88cb31dcbd72104ec5883f35cbc1fb587e47 https://git.kernel.org/stable/c/ad050f6cf681ebb850a9d4bc19474d3896476301 https://git.kernel.org/stable/c/c6087b82a9146826564a55c5ca0164cac40348f5