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 2749237D111 for ; Tue, 16 Dec 2025 13:44:29 +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=1765892669; cv=none; b=Il6T5CWsE5ykPaRN3WQ4DR5LMlnTL3djHdND8Zayjofx+owRPiAKVDzSheMIoleDlAKa/Thjg57ZrRKq0NoYwFQiBIZbLKWzaiyd80gPkZ2p6gKcBZM26i9zoabYHrKudI5lGtkcSAeYXctOL31iO3yZRF+XU0z03ZpAJct0eXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892669; c=relaxed/simple; bh=f3SvY78C0jfogCjsyeMIAKISCyqxSvKtVJspM580BEo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iwqI2REND9+8mQadZj1+2a/YkMT51KsbPKjhNBZSZ14Ye4MuSCR1QtNv5O8cT2Jw9+Ub0mbYfQSY3KIybMcUYFxaR70ky5qvgLVND+23xhFWrY4NVLFh3y9j9cu5m+jd0BHYiDmvnSxLc3605F9rNuGCxyf/wJjpiFqUG70BvcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YSohErGH; 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="YSohErGH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5402C4CEF1; Tue, 16 Dec 2025 13:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892669; bh=f3SvY78C0jfogCjsyeMIAKISCyqxSvKtVJspM580BEo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=YSohErGH1DHOVtunir5lKmCclv6ZguAlWVAmOm8Qt2ukRL8ZCJwuoHcAAWWN5AJxk Jlu7n78KuEExpTo18q6fa4V0t6aSF9lMZqF4utyDdWrRzlZAAPPpdpSMmn/Xn8bRCT 5y/wpfeKmhPzVbtUMb94yvY6E1jGrKPMt3B4Jhp0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68187: net: mdio: Check regmap pointer returned by device_node_to_regmap() Date: Tue, 16 Dec 2025 14:43:48 +0100 Message-ID: <2025121633-CVE-2025-68187-630c@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2118; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xtPWE4OJjMx+QvldSzvDFXOkYNeWVW0pj1jdbvBDrwI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSWz1Krc/W77dqFHe9kV+Atv3A0ZrY2/82JSxb35y3 xmTjnv/O2JYGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAikdkMM86WmikcbzWJFH6S wmpiwLPkxfydDPMjPFd38DFvvZy65+KN3zrlSnEf1hUDAA== 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: mdio: Check regmap pointer returned by device_node_to_regmap() The call to device_node_to_regmap() in airoha_mdio_probe() can return an ERR_PTR() if regmap initialization fails. Currently, the driver stores the pointer without validation, which could lead to a crash if it is later dereferenced. Add an IS_ERR() check and return the corresponding error code to make the probe path more robust. The Linux kernel CVE team has assigned CVE-2025-68187 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 67e3ba978361cb262f8f8981ab88ccb97f1e2bda and fixed in 6.17.8 with commit dc8ed3823473bb38ba43cfb34f1e1c1baa22f975 Issue introduced in 6.17 with commit 67e3ba978361cb262f8f8981ab88ccb97f1e2bda and fixed in 6.18 with commit b2b526c2cf57d14ee269e012ed179081871f45a1 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-68187 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/mdio/mdio-airoha.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/dc8ed3823473bb38ba43cfb34f1e1c1baa22f975 https://git.kernel.org/stable/c/b2b526c2cf57d14ee269e012ed179081871f45a1