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 EC53E43ADE for ; Wed, 1 May 2024 05:22:11 +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=1714540932; cv=none; b=F6/ooPR1VG/S4H/V7jSn1g4hDr2ZN42TQAgsCcwKfRi91IDSrWgqZTVCGdl/GETmEXm/FIRsqBxmDnr321TjNndbgZ/q6H+aiMO/7lWG3LLb9I8iZSRLex4sXWdajVbO91FWhmfRCel9XzMklVyBzxK0/pPN3ZmRX34t71IA2rU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540932; c=relaxed/simple; bh=2WLyrCVhJ0QaQ6t39TlcTnpiDQcjR9qkkzVEbihQS7I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nv3RTrjsSvazxwEDXCglHsay/d4+OC/37ldT8JCzR4NF31PYpBFfTzmdbYAi9GnkOAWutWqKSK1eYjjPPNKo4ik6otdoyL7eSu1OiImtdwFe3o0bWB1ri6xEg2cH/NizJbKCH6uq0hZebjeKEN8+fGSzJA9UAK6gvpdFmFzCfs8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m8WcCqsd; 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="m8WcCqsd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36668C113CC; Wed, 1 May 2024 05:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714540931; bh=2WLyrCVhJ0QaQ6t39TlcTnpiDQcjR9qkkzVEbihQS7I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=m8WcCqsd7c723SoHMwfb8kOuYB4Bjmf/Y0dvCXTZS9Xpf7DTVjlxEX5HwWksZIbD3 b6b4II5Dl1ACAri9mQYrtPjjpwQBXnN1oVIZNbXoy6xtnf43GweEs0TMEwr3RnRQiX 1lgn7svRhqiaKJyfdHjekPRh2MvzADYZgonUV5FM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26942: net: phy: qcom: at803x: fix kernel panic with at8031_probe Date: Wed, 1 May 2024 07:21:32 +0200 Message-ID: <2024050125-CVE-2024-26942-2f72@gregkh> X-Mailer: git-send-email 2.44.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=2102; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2WLyrCVhJ0QaQ6t39TlcTnpiDQcjR9qkkzVEbihQS7I=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGF0PPfO0t25Qc1qPh0lj2yIHpWG+iUOXfd0wRfxJWl l++vmFCRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkz0SGBcuZbqjWPlj28fCP m+7R+yNmcL2/t4dhfmb30gerb3G4PN3LHfJiWu/+Z7ujWQA= 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: qcom: at803x: fix kernel panic with at8031_probe On reworking and splitting the at803x driver, in splitting function of at803x PHYs it was added a NULL dereference bug where priv is referenced before it's actually allocated and then is tried to write to for the is_1000basex and is_fiber variables in the case of at8031, writing on the wrong address. Fix this by correctly setting priv local variable only after at803x_probe is called and actually allocates priv in the phydev struct. The Linux kernel CVE team has assigned CVE-2024-26942 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 25d2ba94005f and fixed in 6.8.3 with commit a8a296ad9957 Issue introduced in 6.8 with commit 25d2ba94005f and fixed in 6.9-rc2 with commit 6a4aee277740 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-26942 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/qcom/at803x.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/a8a296ad9957b845b89bcf48be1cf8c74875ecc3 https://git.kernel.org/stable/c/6a4aee277740d04ac0fd54cfa17cc28261932ddc