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 93FA827A12C for ; Thu, 4 Sep 2025 15:35:23 +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=1757000123; cv=none; b=T8cfw6iU6ZoKwqJdP1vqWiGsrDq83oI7DN9OhVjdwE+YclFuF8/2jGhinhcikCbJt+Vayu5FAf9yR/3Qlv6AVeX8GITfruduP5jfTbQd0ejGsOtc5zU8GWouAX7CEULVePNQA5EHRgV/0yKF2sEA3ev1GNcawcOJBhGDSm/F8GE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000123; c=relaxed/simple; bh=9pKvJQHUh5ff5rWQ+x4IcqEp5KW6ilnmwUC7xxWM4RE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VSwPQ49hpY25RLxXTcTPpqmPNQ2I2Zd8/KYwcWlgzPmVh2eQMWKUd6gmxS2HhMkFo5Fqsf7S4uAIO0LjJ39QS6lEhbLjORhDPWPbZ6TM/d9AWkx9bQqqg8RCS0g/8+3RtYbFbSU+9tRkHrcTT6biy43HqjC/cer9d2VC49usZx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cDevJa6M; 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="cDevJa6M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B7B9C4CEF0; Thu, 4 Sep 2025 15:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000123; bh=9pKvJQHUh5ff5rWQ+x4IcqEp5KW6ilnmwUC7xxWM4RE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cDevJa6MIOq/IWu2nOKLf3rDHUAVJDnTrAeI3lhRpRg6bVi0diBs6JrT+NbOpB+Tf iRZmKQY6BI15M+VwDxLtNnwNfTFzp71lCu2ACOPRLo1SDRPFMTN75C2CCfbQwctYZ0 y6O7r5HICFGpG+WIb7EdldS574Uk21QV8xvkITp4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38725: net: usb: asix_devices: add phy_mask for ax88772 mdio bus Date: Thu, 4 Sep 2025 17:33:30 +0200 Message-ID: <2025090401-CVE-2025-38725-eb3f@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=3511; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iQOxIlNjiDz39sw/CG6tN97Xs9V1tqmoMI6XuXRN1+4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7N+pprP37Z2GS5/+LE3lUCpbNlRXmEts/jyH8GJcY+ 5l1BS/CO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiPZ0M890fHBTmOuO7hKfj jJPLlH8xKx5a9zEsOCl6aLF3gvTj/Av6VjuZPILbKld+BQA= 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: usb: asix_devices: add phy_mask for ax88772 mdio bus Without setting phy_mask for ax88772 mdio bus, current driver may create at most 32 mdio phy devices with phy address range from 0x00 ~ 0x1f. DLink DUB-E100 H/W Ver B1 is such a device. However, only one main phy device will bind to net phy driver. This is creating issue during system suspend/resume since phy_polling_mode() in phy_state_machine() will directly deference member of phydev->drv for non-main phy devices. Then NULL pointer dereference issue will occur. Due to only external phy or internal phy is necessary, add phy_mask for ax88772 mdio bus to workarnoud the issue. The Linux kernel CVE team has assigned CVE-2025-38725 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit e532a096be0e5e570b383e71d4560e7f04384e0f and fixed in 5.15.190 with commit 75947d3200de98a9ded9ad8972e02f1a177097fe Issue introduced in 5.14 with commit e532a096be0e5e570b383e71d4560e7f04384e0f and fixed in 6.1.149 with commit 59ed6fbdb1bc03316e09493ffde7066f031c7524 Issue introduced in 5.14 with commit e532a096be0e5e570b383e71d4560e7f04384e0f and fixed in 6.6.103 with commit ccef5ee4adf56472aa26bdd1f821a6d0cd06089a Issue introduced in 5.14 with commit e532a096be0e5e570b383e71d4560e7f04384e0f and fixed in 6.12.43 with commit ee2cd40b0bb46056949a2319084a729d95389386 Issue introduced in 5.14 with commit e532a096be0e5e570b383e71d4560e7f04384e0f and fixed in 6.15.11 with commit a754ab53993b1585132e871c5d811167ad3c52ff Issue introduced in 5.14 with commit e532a096be0e5e570b383e71d4560e7f04384e0f and fixed in 6.16.2 with commit ad1f8313aeec0115f9978bd2d002ef4a8d96c773 Issue introduced in 5.14 with commit e532a096be0e5e570b383e71d4560e7f04384e0f and fixed in 6.17-rc2 with commit 4faff70959d51078f9ee8372f8cff0d7045e4114 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-38725 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/usb/asix_devices.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/75947d3200de98a9ded9ad8972e02f1a177097fe https://git.kernel.org/stable/c/59ed6fbdb1bc03316e09493ffde7066f031c7524 https://git.kernel.org/stable/c/ccef5ee4adf56472aa26bdd1f821a6d0cd06089a https://git.kernel.org/stable/c/ee2cd40b0bb46056949a2319084a729d95389386 https://git.kernel.org/stable/c/a754ab53993b1585132e871c5d811167ad3c52ff https://git.kernel.org/stable/c/ad1f8313aeec0115f9978bd2d002ef4a8d96c773 https://git.kernel.org/stable/c/4faff70959d51078f9ee8372f8cff0d7045e4114