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 075C413774D for ; Tue, 9 Dec 2025 04:10:28 +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=1765253429; cv=none; b=NgI3bDvMQPIke7Zl0Vbh+h8ZAbr85YeqTaovjyRO3izE3LaPXSeIL1KfJ/cxXYnNF8mRNHc/BFJP0WEqE5GYZ/YVOAqvwL1RAlFnb2BcndGuzxNoHFCnjcjA+8TBeW0G6AldE+zoZWdNx5JaK954nnCiClv59FwR5ZSENU3gDKw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765253429; c=relaxed/simple; bh=gl2tLtVf6kLBnRXrJOVTtz4npRg05+lw3ekzJqHD9CM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MDiOwv5eDOD621DeBl1SWIwFUi2bAXsrDsrhznTZvkW+ACxxH7gIwcaVjWirg7gdrX0ZS3aIw6wrYgLagV7R24WUbGKpiSh/suxRWuqwlGOhz9smxuxHMPGa+wbg1EDMjKlSExlU66MB6boGpmUeCb1cMpJJab3TizlM37COw8Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KNpF+uaM; 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="KNpF+uaM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1456AC4CEF5; Tue, 9 Dec 2025 04:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765253428; bh=gl2tLtVf6kLBnRXrJOVTtz4npRg05+lw3ekzJqHD9CM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=KNpF+uaMvondX0G8QmU/tQK7JwlsL3M+8AQJpHJQmWgMdLF8sst6mI+xriNCnBwqg qvCINMfZBuYYe4FR2SSIwm3rFHU3o/6RXzG1LXhzQr4PZTNwO0s1uvWLVO6GfcsRZz 2BLGmeuZiIvR9IpfbBvie7MSt8vKihi//Cs+O4Kw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40337: net: stmmac: Correctly handle Rx checksum offload errors Date: Tue, 9 Dec 2025 13:10:19 +0900 Message-ID: <2025120911-CVE-2025-40337-d3bd@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=2690; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n8+kvHMbaQiqC6Jefh+WpMfEYlzuTzur+T1ikPgkveM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmC5UD75dHV22JUNWQVZvnkTzh9uGNOeoPrl4+/pV/Q ZzE6smNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARxX6GeRoTZl41sNwWFtSo 9mjV099fFq1bnMywYMuSkJ28UWY7D9pkX+MO7rEV1GebBwA= 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: stmmac: Correctly handle Rx checksum offload errors The stmmac_rx function would previously set skb->ip_summed to CHECKSUM_UNNECESSARY if hardware checksum offload (CoE) was enabled and the packet was of a known IP ethertype. However, this logic failed to check if the hardware had actually reported a checksum error. The hardware status, indicating a header or payload checksum failure, was being ignored at this stage. This could cause corrupt packets to be passed up the network stack as valid. This patch corrects the logic by checking the `csum_none` status flag, which is set when the hardware reports a checksum error. If this flag is set, skb->ip_summed is now correctly set to CHECKSUM_NONE, ensuring the kernel's network stack will perform its own validation and properly handle the corrupt packet. The Linux kernel CVE team has assigned CVE-2025-40337 to this issue. Affected and fixed versions =========================== Fixed in 6.6.117 with commit 63fbe0e6413279d5ea5842e2423e351ded547683 Fixed in 6.12.58 with commit 719fcdf29051f7471d5d433475af76219019d33d Fixed in 6.17.8 with commit 1aa319e0f12d2d761a31556b82a5852c98eb0bea Fixed in 6.18 with commit ee0aace5f844ef59335148875d05bec8764e71e8 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-40337 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/stmicro/stmmac/stmmac_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/63fbe0e6413279d5ea5842e2423e351ded547683 https://git.kernel.org/stable/c/719fcdf29051f7471d5d433475af76219019d33d https://git.kernel.org/stable/c/1aa319e0f12d2d761a31556b82a5852c98eb0bea https://git.kernel.org/stable/c/ee0aace5f844ef59335148875d05bec8764e71e8