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 7329C2147F4 for ; Thu, 27 Mar 2025 16:46:40 +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=1743094000; cv=none; b=u1/XoJhUM0/fHqekhUEatMZn3JR+UglhG3hnnykXwIdSsjhY+TwcFBZzfzqFTdt4a1tU3k1BzBnaaMkSbP2WNtcmojs9rzwVyONVbT0tyoU0ZNxcJO2XImucTCWtSaGyMKYsHkz81E5F4psjJO1E6wdtd/3mf2ChZ7adFGnjacA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743094000; c=relaxed/simple; bh=g+TQzI3kQ/nSgXzDMooYx/26vXMLQ1Q9P+EdVERqV3M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b/4AeY6FIzPf56vCfA5x7ykJh2rX84ZrlyeEbrUtk5z2eVhln/MxRnOIf4O1DuvrOWaSbBVxzZIiyCkylxaJRxnjld0Fu3HtkJMvqt02a9KA7D9MXb4nDolvmPp97dBScyVlmhgsQGDIRcecbtsVNlb8BaTZlwmLpIiEjbozS0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V1XvacaJ; 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="V1XvacaJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A530C4CEE5; Thu, 27 Mar 2025 16:46:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743094000; bh=g+TQzI3kQ/nSgXzDMooYx/26vXMLQ1Q9P+EdVERqV3M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V1XvacaJPlhpQx+T+A2izL2sQtKflP9EPXAY+XH6iC0dbL/tSRZtShpPthlmmT5Tb RyHvDwxO3TLgmFGonlaf4r3M200QluddgsTw4s8Rrg/TtHAUHJplURhTkgHCczO7mW dE47eVQbqUgefwXV7tlSUKiimE4ilk+EUlrtyGhM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53019: net: mdio: validate parameter addr in mdiobus_get_phy() Date: Thu, 27 Mar 2025 17:44:06 +0100 Message-ID: <2025032717-CVE-2023-53019-441a@gregkh> X-Mailer: git-send-email 2.49.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=3112; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g+TQzI3kQ/nSgXzDMooYx/26vXMLQ1Q9P+EdVERqV3M=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG1RVd7sqtvDHlv89fst71lwJ/qPrVrkteqHfu/6jj yav2cyjHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARZUOGeQYXvF1av/woeTfv kprvks1iu2c0HweKzn+UEdn5MKBwVdQ7qe6pkxl39vYDAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net: mdio: validate parameter addr in mdiobus_get_phy() The caller may pass any value as addr, what may result in an out-of-bounds access to array mdio_map. One existing case is stmmac_init_phy() that may pass -1 as addr. Therefore validate addr before using it. The Linux kernel CVE team has assigned CVE-2023-53019 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 4.14.305 with commit 1d80c259dfbadefa61b7ea334dfce5cb57f8c72f Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 4.19.272 with commit c431a3d642593bbdb99e8a9e3eed608b730db6f8 Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 5.4.231 with commit 8a7b9560a3a8eb8724888c426e05926752f73aa0 Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 5.10.166 with commit 4bc5f1f6bc94e695dfd912122af96e7115a0ddb8 Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 5.15.91 with commit ad67de330d83e8078372b52af18ffe8d39e26c85 Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 6.1.9 with commit 7879626296e6ffd838ae0f2af1ab49ee46354973 Issue introduced in 4.5 with commit 7f854420fbfe9d49afe2ffb1df052cfe8e215541 and fixed in 6.2 with commit 867dbe784c5010a466f00a7d1467c1c5ea569c75 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-53019 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/net/phy/mdio_bus.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/1d80c259dfbadefa61b7ea334dfce5cb57f8c72f https://git.kernel.org/stable/c/c431a3d642593bbdb99e8a9e3eed608b730db6f8 https://git.kernel.org/stable/c/8a7b9560a3a8eb8724888c426e05926752f73aa0 https://git.kernel.org/stable/c/4bc5f1f6bc94e695dfd912122af96e7115a0ddb8 https://git.kernel.org/stable/c/ad67de330d83e8078372b52af18ffe8d39e26c85 https://git.kernel.org/stable/c/7879626296e6ffd838ae0f2af1ab49ee46354973 https://git.kernel.org/stable/c/867dbe784c5010a466f00a7d1467c1c5ea569c75