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 62E3E2D0C7E for ; Thu, 3 Jul 2025 08:37:19 +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=1751531839; cv=none; b=etYJVGZ1wwzXrmwQPMbeF1hNBM3OUqVT2cUuG9LAIhRrtvfFWELnVGME0hcto1K+RZXORDtaxyMUO6QUBdqZEgb23YS1vQcbFcfh/9ocZFMa+ZY/yAkoGMEWFY3zRhiYWb9Lf7GmnvqvGOs4tsj0YYRIUDimzd31KIozQ5fiCCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531839; c=relaxed/simple; bh=8Aip5eGTzAP/fGFFw6sfBEDAqDCNA9lhw6FBBk7ZjFM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qtN3zZgx3udbkDrTAZyr6KqAxYjyY9RG7ilTvZdZw6WvRgF4XdscuS7NJkAOPt1DwuKgPKNvSk4mbHGnkY8QaSmFmEW7VjtJAcTwr6afkwB9DQ+bK2LjsP9kTGbr34RE4DvK068BNfuPfTBUM7wNzL/xEehYINV0/0snXZcEhGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DV9yJKZ0; 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="DV9yJKZ0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80A72C4CEE3; Thu, 3 Jul 2025 08:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531839; bh=8Aip5eGTzAP/fGFFw6sfBEDAqDCNA9lhw6FBBk7ZjFM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DV9yJKZ0mOP0kHvXgw2W+LGsndijyRgSWNHu/xKCKqGf5t36Pu0fFx3rAEjgkGlu/ D8mSCfRpFVznda6fggv83LbiOx2jhaItVJP1u41CluyJeXfy+Y/W6GhUtFi6m4MRcb XiCXBPYL6F7fnGVVvzsmkPHufX5ZVVH8MFa5syoE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38110: net/mdiobus: Fix potential out-of-bounds clause 45 read/write access Date: Thu, 3 Jul 2025 10:35:27 +0200 Message-ID: <2025070324-CVE-2025-38110-a9c0@gregkh> X-Mailer: git-send-email 2.50.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=2940; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/3l9yO3K1ZW66wgSaO1opIVYlZPzI84Xu6zhKK4lfP8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDmfe+P/6aZp5y4Y3PL0xep7mjF4Pr2UZfjU9fH8vr udbNcO6I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbiWc8wV2Ilw917mTMZ5ydu OznR+fExjaudqxnmisTMfb2sVvrShoMtfRlJa1d+XfgwCwA= 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: net/mdiobus: Fix potential out-of-bounds clause 45 read/write access When using publicly available tools like 'mdio-tools' to read/write data from/to network interface and its PHY via C45 (clause 45) mdiobus, there is no verification of parameters passed to the ioctl and it accepts any mdio address. Currently there is support for 32 addresses in kernel via PHY_MAX_ADDR define, but it is possible to pass higher value than that via ioctl. While read/write operation should generally fail in this case, mdiobus provides stats array, where wrong address may allow out-of-bounds read/write. Fix that by adding address verification before C45 read/write operation. While this excludes this access from any statistics, it improves security of read/write operation. The Linux kernel CVE team has assigned CVE-2025-38110 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a and fixed in 6.6.94 with commit abb0605ca00979a49572a6516f6db22c3dc57223 Issue introduced in 6.3 with commit 4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a and fixed in 6.12.34 with commit 31bf7b2b92563a352788cf9df3698682f659bacc Issue introduced in 6.3 with commit 4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a and fixed in 6.15.3 with commit 4ded22f7f3ce9714ed72c3e9c68fea1cb9388ae7 Issue introduced in 6.3 with commit 4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a and fixed in 6.16-rc2 with commit 260388f79e94fb3026c419a208ece8358bb7b555 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-38110 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/abb0605ca00979a49572a6516f6db22c3dc57223 https://git.kernel.org/stable/c/31bf7b2b92563a352788cf9df3698682f659bacc https://git.kernel.org/stable/c/4ded22f7f3ce9714ed72c3e9c68fea1cb9388ae7 https://git.kernel.org/stable/c/260388f79e94fb3026c419a208ece8358bb7b555