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 38B37303A0A for ; Wed, 12 Nov 2025 10:24:28 +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=1762943068; cv=none; b=gpLYUvdnyi4khTKBlfBWJS2IkIguoo3PkDuMqrwobsEC1s93l9PNaVTEvFP9woZIJhisy4YGLk1oZrPj+uJMDWRaqVJsmABnQFoD2jF5ZeK7dAE5wi1iEhscacP6XVf+eIi7y78qrIt73uAuBCez3ATWIg6i6+M8r6kQghdqIGY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943068; c=relaxed/simple; bh=2l7hsuhhgb0uHYPsA5hX8aSEy48pEH1dQ6qlvotJ5uA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZhYHcHfvJ1gKCRH2m4U4hvaefjV7YUZg05ASj4dI1oe5SfX9dlH4BwSnPQdLKurEBRWW/HhxVse7kqOdhP9XVpjaTRz7xMSoU0Odsl701kOAoE8XSkVilVFNN0L8q/Kfc0+Osi/bTDFJxnTGzI3qM5mtCiESwqQMnIOPkEJ3b4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b8VMcQ4h; 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="b8VMcQ4h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF8BFC4CEF5; Wed, 12 Nov 2025 10:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943068; bh=2l7hsuhhgb0uHYPsA5hX8aSEy48pEH1dQ6qlvotJ5uA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=b8VMcQ4hmO9xnQC9wJ/2RkL8QkQBeOZfr7OnrtbJX4tTkyiu8of06rGIjjXh2uzEM tNe92MiGANX3aooCq6alDTq98J8cIcqP7E766XcgEFB68XvPeJn/yxR3VS/qG0FY25 UAKCIhIu5x3jznpUu/YNPXqkcqDDp7nAR9H6Ib2I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40120: net: usb: asix: hold PM usage ref to avoid PM/MDIO + RTNL deadlock Date: Wed, 12 Nov 2025 19:23:56 +0900 Message-ID: <2025111252-CVE-2025-40120-8b68@gregkh> X-Mailer: git-send-email 2.51.2 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=3876; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=v2/cG90FydhjKz+GtDlWHwzeuajCSlZDvvtJ1oJRVBc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCRauW+J+i99kMlEN27dicdqlOq6tUReTC3MKy7dMW bE82nVDRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkQz3D/HS9yGUCE6Rzntrx ll2VevNYi3evCMM8m2XS2eqPTWT+sdR8vHwl0OrdqeYQAA== 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: hold PM usage ref to avoid PM/MDIO + RTNL deadlock Prevent USB runtime PM (autosuspend) for AX88772* in bind. usbnet enables runtime PM (autosuspend) by default, so disabling it via the usb_driver flag is ineffective. On AX88772B, autosuspend shows no measurable power saving with current driver (no link partner, admin up/down). The ~0.453 W -> ~0.248 W drop on v6.1 comes from phylib powering the PHY off on admin-down, not from USB autosuspend. The real hazard is that with runtime PM enabled, ndo_open() (under RTNL) may synchronously trigger autoresume (usb_autopm_get_interface()) into asix_resume() while the USB PM lock is held. Resume paths then invoke phylink/phylib and MDIO, which also expect RTNL, leading to possible deadlocks or PM lock vs MDIO wake issues. To avoid this, keep the device runtime-PM active by taking a usage reference in ax88772_bind() and dropping it in unbind(). A non-zero PM usage count blocks runtime suspend regardless of userspace policy (.../power/control - pm_runtime_allow/forbid), making this approach robust against sysfs overrides. Holding a runtime-PM usage ref does not affect system-wide suspend; system sleep/resume callbacks continue to run as before. The Linux kernel CVE team has assigned CVE-2025-40120 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 4a2c7217cd5a87e85ceb761e307b030fe6db4805 and fixed in 5.15.195 with commit 71a0ba7fdaf8d035426912a4ed7bf1738a81010c Issue introduced in 5.14 with commit 4a2c7217cd5a87e85ceb761e307b030fe6db4805 and fixed in 6.1.156 with commit 3e96cd27ff1a004d84908c1b6cc68ac60913874e Issue introduced in 5.14 with commit 4a2c7217cd5a87e85ceb761e307b030fe6db4805 and fixed in 6.6.112 with commit 724a9db84188f80ef60b1f21cc7b4e9c84e0cb64 Issue introduced in 5.14 with commit 4a2c7217cd5a87e85ceb761e307b030fe6db4805 and fixed in 6.12.53 with commit 1534517300e12f2930b6ff477b8820ff658afd11 Issue introduced in 5.14 with commit 4a2c7217cd5a87e85ceb761e307b030fe6db4805 and fixed in 6.17.3 with commit 9d8bcaf6fae1bd82bc27ec09a2694497e6f6c4b4 Issue introduced in 5.14 with commit 4a2c7217cd5a87e85ceb761e307b030fe6db4805 and fixed in 6.18-rc1 with commit 3d3c4cd5c62f24bb3cb4511b7a95df707635e00a 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-40120 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/71a0ba7fdaf8d035426912a4ed7bf1738a81010c https://git.kernel.org/stable/c/3e96cd27ff1a004d84908c1b6cc68ac60913874e https://git.kernel.org/stable/c/724a9db84188f80ef60b1f21cc7b4e9c84e0cb64 https://git.kernel.org/stable/c/1534517300e12f2930b6ff477b8820ff658afd11 https://git.kernel.org/stable/c/9d8bcaf6fae1bd82bc27ec09a2694497e6f6c4b4 https://git.kernel.org/stable/c/3d3c4cd5c62f24bb3cb4511b7a95df707635e00a