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 937B57DA7F for ; Tue, 5 Nov 2024 17:05:37 +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=1730826337; cv=none; b=gmU9Q7DbDB9bmNoyyuRu+fsEGQCN4XwtsdPrBpKt+FWkazev550PFT/qmD/gzomZH/coLMvpO2lsj3BmqkArJKkTlqdDUwtzFwDcOicJ1ddKsbEx70+HbRbrX90tgOqwiH/29UMuzhobcl6fTrofu7jc2ZSTG1f3lTd6cR+H5+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826337; c=relaxed/simple; bh=nHygqcENdc4G6qqIY2v+VVTO5UQUYocudvdBUeVoSbE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h0Qv44dlI0yu0ehfh4rtDFCl0u53ou4MUKPDGQw8k0JrA3rTJ5tpJTn3V5h3igBv+FKZPmWN2i3WErdCeSrRY0ZAkKAvgChjL/oE1bvSOv5QN0K1o8I9cgIbFl8eaWC2NVYdafaJnZr+BPw/UE8hBtUBW7RTC/uWLjwhzrwMOWg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z6V1eMTD; 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="z6V1eMTD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10F9BC4CECF; Tue, 5 Nov 2024 17:05:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730826337; bh=nHygqcENdc4G6qqIY2v+VVTO5UQUYocudvdBUeVoSbE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=z6V1eMTDqy32bSHd1S85OV2hg1l9xm/sQjAFsQHcnlAMmd4G7l/9/YzETQoQg7Hoj a9hZqcyB/U0TCx19KhtMdUcNdFXaevkYIr9aUbTzAkCmKbn/81IdNydqqywGBmWNGh Wl+Zo2+nZPnKJ7UmiTQL5IceztvQWFdTiaZs7qCc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50097: net: fec: don't save PTP state if PTP is unsupported Date: Tue, 5 Nov 2024 18:04:57 +0100 Message-ID: <2024110552-CVE-2024-50097-39b6@gregkh> X-Mailer: git-send-email 2.47.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=2260; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nHygqcENdc4G6qqIY2v+VVTO5UQUYocudvdBUeVoSbE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlaASarfu1kOGHLozxHgentucVGSzzLGP9JeS5NOhGwi vnE5bkhHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRrhsMC+bUZk1h/HHjoKN/ BNtB6fCgLZlJ8gwLusOnBu784qU7ZbNJ2KZjlyYaiW5eCAA= 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: fec: don't save PTP state if PTP is unsupported Some platforms (such as i.MX25 and i.MX27) do not support PTP, so on these platforms fec_ptp_init() is not called and the related members in fep are not initialized. However, fec_ptp_save_state() is called unconditionally, which causes the kernel to panic. Therefore, add a condition so that fec_ptp_save_state() is not called if PTP is not supported. The Linux kernel CVE team has assigned CVE-2024-50097 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.55 with commit dc5fb264168c and fixed in 6.6.57 with commit 7745e14f4c03 Issue introduced in 6.11.3 with commit 5763541f24d8 and fixed in 6.11.4 with commit 3192e8d4a1ef Issue introduced in 6.12-rc2 with commit a1477dc87dc4 and fixed in 6.12-rc3 with commit 6be063071a45 Issue introduced in 6.10.14 with commit cf53d7e76f1f 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-50097 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/7745e14f4c036ce94a5eb05d06e49b0d84b306f9 https://git.kernel.org/stable/c/3192e8d4a1ef9fc9bd7a59cdce51543367e5edd6 https://git.kernel.org/stable/c/6be063071a457767ee229db13f019c2ec03bfe44