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 0EEAF2D77F6 for ; Thu, 4 Dec 2025 15:32:43 +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=1764862363; cv=none; b=jUvTyoqLtoHE6qJ17xeemKNBj/5UQQZ4vLYhmNpI8HSqxwm65RYa7uD77rJ7DbBTfQ9U/osmd39n2mNzH7TXMn8SNDoerTE8/OBqKqV/Ar0qcRaRMX//oTc6Q5yIY3jSk11QVKkeyx7FmmSNAMYCjgNW9QAH4ZNsEIW5aUNJAgw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764862363; c=relaxed/simple; bh=1UscdbZHk0JsZ9AYeoRC1u/TGSTrcW1qASRoPVNTTso=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pzxQzIu8d6hskKxkfWWI0HJUdb7IKtnCvAcz7gZBnoHYjFXS3gvciFnnVnHUf6HpBm6cjkleiyu7c/J8dlkYG+yC0NWgK3TdWTIrFL2/u6F3ChvgKdnyGu6JuBjn90O11hfbyRjL+MNwOPaolyuRpy+Uel0R1dpHl/ortdOYJ+g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ojn8dZjZ; 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="Ojn8dZjZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F3F9C4CEFB; Thu, 4 Dec 2025 15:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764862362; bh=1UscdbZHk0JsZ9AYeoRC1u/TGSTrcW1qASRoPVNTTso=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Ojn8dZjZj/kTBTR53MQ0eKUEGBzGLdsUA4yKzLHaZVljg2N82ZUv+KiOWsfM6wCQw Etfjlnel/yIWM3gA5znLMXAZeXIcmtsvwVPpunP0qV0j9HNqXs3gwQI9uK/p6sSR5z 7uutshOLxAFbiXn58P9R9bedLmaq1lVMdjLiY3V0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40239: net: phy: micrel: always set shared->phydev for LAN8814 Date: Thu, 4 Dec 2025 16:32:14 +0100 Message-ID: <2025120402-CVE-2025-40239-beb9@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=2445; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aNXFRHDHYYkyeaOWekvV8h0HD6SYFXsNijS1cv+7K4c=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmGK4tzZ7gLeJrtuCZ4NuFZbs8Vz6NPJOQmvz7R/+hUf uWNzy/8O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiT5sZ5kdvvjCfKUNEbfee 8ycFeS5m2nupWjPMs3r7ynBzYdn6N3Lc88w1S/mbj01/BAA= 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: phy: micrel: always set shared->phydev for LAN8814 Currently, during the LAN8814 PTP probe shared->phydev is only set if PTP clock gets actually set, otherwise the function will return before setting it. This is an issue as shared->phydev is unconditionally being used when IRQ is being handled, especially in lan8814_gpio_process_cap and since it was not set it will cause a NULL pointer exception and crash the kernel. So, simply always set shared->phydev to avoid the NULL pointer exception. The Linux kernel CVE team has assigned CVE-2025-40239 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746 and fixed in 6.12.56 with commit da1ef8e9eb5d4a12bec32d11636e521e7d529b9e Issue introduced in 6.10 with commit b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746 and fixed in 6.17.6 with commit b093b06826b836c2824858669db080c190c04715 Issue introduced in 6.10 with commit b3f1a08fcf0dd58d99b14b9f8fbd1929f188b746 and fixed in 6.18 with commit 399d10934740ae8cdaa4e3245f7c5f6c332da844 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-40239 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/micrel.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/da1ef8e9eb5d4a12bec32d11636e521e7d529b9e https://git.kernel.org/stable/c/b093b06826b836c2824858669db080c190c04715 https://git.kernel.org/stable/c/399d10934740ae8cdaa4e3245f7c5f6c332da844