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 BD4C418CC02 for ; Fri, 27 Sep 2024 12:44:36 +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=1727441076; cv=none; b=lT4LiRRlVklaf6qRwCtFYvCVJjQZ7+XebdHD6L00e0F/AZvKO2MgVDNC2wciP3XjY5sjJ8E4c2JoUkzYPWL0R3ZJjs5+vWw3+6PCvaTdr+nsxS28M161Sb4WPX0rCA6+F8cjU+Mv3ekQHbRVgQRqO4aMXXYkMvH8GlUmBVvk2bQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727441076; c=relaxed/simple; bh=AJIPITu0Ga2GJ4kJv6I2BMhRWEnpAPn7eZGOddSABAw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Fg612Dc9/ZaltUileuuJvWqOQzj/FLbjPi99tdKkgDbRKgCu9lZSK7sSP/RYn/zGhKYSBavuvUV4HZMgbvblAK8TjS7qFUhd+rxtyHL6/Oi8enjUImTi8+8m9k2rCHX1bNzxV3h39I5bYqPppKzJnxxuwJD3X3J3p9IDUk6SK68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g4tbAiXC; 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="g4tbAiXC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43083C4CEC4; Fri, 27 Sep 2024 12:44:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727441076; bh=AJIPITu0Ga2GJ4kJv6I2BMhRWEnpAPn7eZGOddSABAw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=g4tbAiXCrkj8wd6sdF38WK6eU1DDnTTOoCNuRORzdFHpEJ86Z6HcU7Y+epjYeuLj2 Tx3o+a/HhqFgdp779tZBj0DxObnjEgcEcR5iqK4cOs2QmuDBFzmDdpEz+fBxX05gRU qPnqaLp01+ptCdAIpCFCkS/DP6H56WNoc1LOz9lA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46856: net: phy: dp83822: Fix NULL pointer dereference on DP83825 devices Date: Fri, 27 Sep 2024 14:43:49 +0200 Message-ID: <2024092743-CVE-2024-46856-c304@gregkh> X-Mailer: git-send-email 2.46.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=2090; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AJIPITu0Ga2GJ4kJv6I2BMhRWEnpAPn7eZGOddSABAw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfVtQr2wds23CgMe3j2ol791qm6j8PWHnc6dL1chPOx XJHr2n+7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfNJmmMPh/Lt0490d7u9f Sj7+P3nHQeMDx88wLFh6XGI5E+8qm4C77/ddnPlw2SmjtGsA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net: phy: dp83822: Fix NULL pointer dereference on DP83825 devices The probe() function is only used for DP83822 and DP83826 PHY, leaving the private data pointer uninitialized for the DP83825 models which causes a NULL pointer dereference in the recently introduced/changed functions dp8382x_config_init() and dp83822_set_wol(). Add the dp8382x_probe() function, so all PHY models will have a valid private data pointer to fix this issue and also prevent similar issues in the future. The Linux kernel CVE team has assigned CVE-2024-46856 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 9ef9ecfa9e9f and fixed in 6.10.11 with commit 67b61e2f4c9c Issue introduced in 6.10 with commit 9ef9ecfa9e9f and fixed in 6.11 with commit 3f62ea572b3e 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-2024-46856 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/dp83822.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/67b61e2f4c9c5df97a9a2ef7a1fe35eae00531f4 https://git.kernel.org/stable/c/3f62ea572b3e8e3f10c39a9cb4f04ca9ae5f2952