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 88955266584 for ; Tue, 23 Sep 2025 06:01:51 +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=1758607311; cv=none; b=GsfBemRA+FYmahOSEWxykayE779+fp1fBcLIQuHSxn4gS9pnQGrFahNohTABxzOBuuJ9OOEQ/Y6nWKkzJwwy3wOcIshnUsZlbSpCVYAff/w2Cmm6ZfuK4zKUPGlkJMt9P9LXvIIUq5O2QmFa8sAX3XNHbNddOxlj5CyJnknlwhQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758607311; c=relaxed/simple; bh=/JcZLIdZecpNhuZg+vJ7yS0R72WcapD+CZ101+LmxD0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KrPIci7CvU+maYSEY13HgrGfQk8GmrHregq2T/QgYOQKEejVXS0B/bA01KCWJE558mVAb+1qIwzORRPz64c9G6xXw5KJC/bFVmcc6c771TACbGSBx1s6KfDuN9wVv2e0B9GtiwJXCKdOaw29xpqS9yzTjIOQ1Up0Mp5U7xxono0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WhOdQlKu; 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="WhOdQlKu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F479C116B1; Tue, 23 Sep 2025 06:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758607311; bh=/JcZLIdZecpNhuZg+vJ7yS0R72WcapD+CZ101+LmxD0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WhOdQlKu4MAmrcMWk3PIIbR69/ypnO1f6mtXvmDvQSVud2zSiTk3n79QrP8LtRsf4 NCMDUh7naawv4HSWmti3nNAsSd155Bl8ne3oGlkO5VIa//dQnpmQaqsPN2z+hV6Oe7 Y7IOnq95ihFR2x7JsThAJRFJ2yAqvADUjZOo7xwY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39876: net: fec: Fix possible NPD in fec_enet_phy_reset_after_clk_enable() Date: Tue, 23 Sep 2025 08:01:07 +0200 Message-ID: <2025092300-CVE-2025-39876-3d4a@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=2915; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xk6oAPnXHDSitiQKOkQQjRRMRfYdHKSeVoKAKmMM/bg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmXzOccOvD08pWt3Vvaj59cE7y60CisZRXPzCpZHZ7f6 4sYeSt7OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiyXwMC/Y7vbiyIkCGPXcP z/nSr69sczeeymWYpyF3/2D5bzX+77vE4lnzLNoXCN1JAQA= 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: fec: Fix possible NPD in fec_enet_phy_reset_after_clk_enable() The function of_phy_find_device may return NULL, so we need to take care before dereferencing phy_dev. The Linux kernel CVE team has assigned CVE-2025-39876 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 64a632da538a6827fad0ea461925cedb9899ebe2 and fixed in 6.1.153 with commit 5f1bb554a131e59b28482abad21f691390651752 Issue introduced in 5.10 with commit 64a632da538a6827fad0ea461925cedb9899ebe2 and fixed in 6.6.107 with commit fe78891f296ac05bf4e5295c9829ef822f3c32e7 Issue introduced in 5.10 with commit 64a632da538a6827fad0ea461925cedb9899ebe2 and fixed in 6.12.48 with commit 4fe53aaa4271a72fe5fe3e88a45ce01646b68dc5 Issue introduced in 5.10 with commit 64a632da538a6827fad0ea461925cedb9899ebe2 and fixed in 6.16.8 with commit eb148d85e126c47d65be34f2a465d69432ca5541 Issue introduced in 5.10 with commit 64a632da538a6827fad0ea461925cedb9899ebe2 and fixed in 6.17-rc6 with commit 03e79de4608bdd48ad6eec272e196124cefaf798 Issue introduced in 4.19.153 with commit c068e505f229ca5f778f825f1401817ce818e917 Issue introduced in 5.4.73 with commit 9e70485b40c8306298adea8bdc867ca27f88955a Issue introduced in 5.8.17 with commit 8a6ab151443cd71e2aa5e8b7014e3453dbd51935 Issue introduced in 5.9.2 with commit ce88b5f42868ef4964c497d4dfcd25e88fd60c5b 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-39876 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/ethernet/freescale/fec_main.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/5f1bb554a131e59b28482abad21f691390651752 https://git.kernel.org/stable/c/fe78891f296ac05bf4e5295c9829ef822f3c32e7 https://git.kernel.org/stable/c/4fe53aaa4271a72fe5fe3e88a45ce01646b68dc5 https://git.kernel.org/stable/c/eb148d85e126c47d65be34f2a465d69432ca5541 https://git.kernel.org/stable/c/03e79de4608bdd48ad6eec272e196124cefaf798