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 E5BCD1C8631 for ; Mon, 15 Sep 2025 14:26:31 +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=1757946392; cv=none; b=nMpSEHNLNlC74ZZMAB7mm/I7ee+LJJKQ0DQpp54Ke/eh07e55PdGssELWlM5hbN4Ke02L2WjSvrcfTba+smXE2eRklXTCc1VB0ZHYvRzra4/qnXPKDdfaiCmOGRhsVCv2/0s5PYs9tgC1nI+VCwX0Hns60cQ/I4WcB/l6qtP52A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946392; c=relaxed/simple; bh=Ihl/SLWyYuBKythTErpFsDRmPCoMsJL3I74sF90nSmw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U3qGQEtJ/MjF/3EEFzBY+sRjHJzdkAd9Sh0nm/BOhke8NHaKjBsuh+5PqAs57jN06WK5hcWfNChhnAq7alz6F9hs2olRl+O/5FzOiTiBFX2Vy89N84b7IkywclDzyJEjezjT+CwVd2HNN5maMqUwSzUq7MO8flxm41M+vPDDKSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IUwlEDwI; 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="IUwlEDwI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DAD5C4CEF1; Mon, 15 Sep 2025 14:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946391; bh=Ihl/SLWyYuBKythTErpFsDRmPCoMsJL3I74sF90nSmw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IUwlEDwIbt3FngHqEFGPTTRPsYJaCNu1YytfESe0Hnl7e2t5K0i2LgK96mftx7FbR t6RFxPXKMEaRrGo/vVYeA+cVOquubF+jlDRJrZ2HFBwKTM8alItev7ozPbxKrDugNm QDXP5X2R5HNrx1K4nHwWNVXfGHlvr7e+CbZ5KT8Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53238: phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe() Date: Mon, 15 Sep 2025 16:22:12 +0200 Message-ID: <2025091516-CVE-2023-53238-f8a7@gregkh> X-Mailer: git-send-email 2.51.0 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=3330; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NB0Q7ngHMdH6dLcuAFwQfPk4yu3aYjDIfNe5f5l1ktQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFO6wyR64OFdX4oNFRAr7uoOvKg6xyiXc/Ri4Y1FR6 5cFQtE+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRv+4MC5aJd+mzlYf23+bU 1TG3DfviVreGl2HBotPnXdq2aa+/uy/sEktqUuymncLpAA== 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: phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe() The size of array 'priv->ports[]' is INNO_PHY_PORT_NUM. In the for loop, 'i' is used as the index for array 'priv->ports[]' with a check (i > INNO_PHY_PORT_NUM) which indicates that INNO_PHY_PORT_NUM is allowed value for 'i' in the same loop. This > comparison needs to be changed to >=, otherwise it potentially leads to an out of bounds write on the next iteration through the loop The Linux kernel CVE team has assigned CVE-2023-53238 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit ba8b0ee81fbbc249e60f84bf097bd56e8047c742 and fixed in 4.19.291 with commit 2843a2e703f5cb85c9eeca11b7ee90861635a010 Issue introduced in 4.17 with commit ba8b0ee81fbbc249e60f84bf097bd56e8047c742 and fixed in 5.4.253 with commit 195e806b2afb0bad6470c9094f7e45e0cf109ee0 Issue introduced in 4.17 with commit ba8b0ee81fbbc249e60f84bf097bd56e8047c742 and fixed in 5.10.190 with commit ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8 Issue introduced in 4.17 with commit ba8b0ee81fbbc249e60f84bf097bd56e8047c742 and fixed in 5.15.124 with commit 6d8a71e4c3a2fa4960cc50996e76a42b62fab677 Issue introduced in 4.17 with commit ba8b0ee81fbbc249e60f84bf097bd56e8047c742 and fixed in 6.1.43 with commit 01cb355bb92e8fcf8306e11a4774d610c5864e39 Issue introduced in 4.17 with commit ba8b0ee81fbbc249e60f84bf097bd56e8047c742 and fixed in 6.4.8 with commit ce69eac840db0b559994dc4290fce3d7c0d7bccd Issue introduced in 4.17 with commit ba8b0ee81fbbc249e60f84bf097bd56e8047c742 and fixed in 6.5 with commit 13c088cf3657d70893d75cf116be937f1509cc0f 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-53238 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/phy/hisilicon/phy-hisi-inno-usb2.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/2843a2e703f5cb85c9eeca11b7ee90861635a010 https://git.kernel.org/stable/c/195e806b2afb0bad6470c9094f7e45e0cf109ee0 https://git.kernel.org/stable/c/ad249aa3c38f329f91fba8b4b3cd087e79fb0ce8 https://git.kernel.org/stable/c/6d8a71e4c3a2fa4960cc50996e76a42b62fab677 https://git.kernel.org/stable/c/01cb355bb92e8fcf8306e11a4774d610c5864e39 https://git.kernel.org/stable/c/ce69eac840db0b559994dc4290fce3d7c0d7bccd https://git.kernel.org/stable/c/13c088cf3657d70893d75cf116be937f1509cc0f