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 4F5113195FA for ; Fri, 19 Sep 2025 15:28:47 +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=1758295728; cv=none; b=Vx0fFyW1SrPek9AhMs71WrpK6vrCdX1B6kdlztDkWjXgoScrxuaokZgjz8K9nSjvkm1LMkcsy03VdiAF63gDiVLhtoO3wqZLvok/YBgJWkQP4jS7X39kmwktLOxpmPXi7AtoY9OxGaRRQWvfjR/r5wT2oga6fG9JdYHr10uwJk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758295728; c=relaxed/simple; bh=oKv85KpZzTYGJ6+e4NN0iEMkQFQwJ99Wg6fE3vvUdYc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CVK71aPkHYJjXAHyoJaQLEwaBAHyk7bOixw7rW0harIfeB4U19zo1/exW7MJ9yJ7n649N3igMTpb7S/p0Cb5tSxfwFI9tsty1BVRUdc19FYzOk9oUplIEsX/ZSFTtLwtak8OomBhkxDByaH0FJ7mb6qjoyyHqlPFh/z5kXOB54E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LMI75ALa; 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="LMI75ALa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62035C4CEF0; Fri, 19 Sep 2025 15:28:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758295727; bh=oKv85KpZzTYGJ6+e4NN0iEMkQFQwJ99Wg6fE3vvUdYc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LMI75ALa0NmDEg1J3c11Ne8TpQ450bQ8nODbaeJrYTGv9vdvDBCn11C6KU+s6LkNl VmqlEG1J5V5IS62vq34svnrkJx1ly5E3RnVOiwb/m91pNy8RPbOigWvBBKhfNwXmtr e92CvpeyUMwsc8R+Eao7w3AXUd4gH3wl2MQZZ0rM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39856: net: ethernet: ti: am65-cpsw-nuss: Fix null pointer dereference for ndev Date: Fri, 19 Sep 2025 17:28:20 +0200 Message-ID: <2025091905-CVE-2025-39856-cca3@gregkh> X-Mailer: git-send-email 2.51.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=2141; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YDBmu1JsJYnGyzZZ3nwN/8VoV0ruH2kTByg+QlpHW6I=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlny1qLFixQk/5R9vHNE3/LEE12AR2207+DIsoabOLuF 7bmeJd1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETeZzAsuCD+1sno4GmfDbNW VB6PO+C8545yK8P8KFXzcOm9sULmbAF2Rw52hM5fo9cKAA== 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: ethernet: ti: am65-cpsw-nuss: Fix null pointer dereference for ndev In the TX completion packet stage of TI SoCs with CPSW2G instance, which has single external ethernet port, ndev is accessed without being initialized if no TX packets have been processed. It results into null pointer dereference, causing kernel to crash. Fix this by having a check on the number of TX packets which have been processed. The Linux kernel CVE team has assigned CVE-2025-39856 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 9a369ae3d1431a83589dde57323a04692dd7fc12 and fixed in 6.16.6 with commit 485302905bada953aadfe063320d73c892a66cbb Issue introduced in 6.15 with commit 9a369ae3d1431a83589dde57323a04692dd7fc12 and fixed in 6.17-rc5 with commit a6099f263e1f408bcc7913c9df24b0677164fc5d 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-39856 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/ti/am65-cpsw-nuss.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/485302905bada953aadfe063320d73c892a66cbb https://git.kernel.org/stable/c/a6099f263e1f408bcc7913c9df24b0677164fc5d