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 186B028750A for ; Thu, 10 Jul 2025 08:15:50 +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=1752135351; cv=none; b=dVtqkFhx7oJNDehNyaJmKWnRMYsv0X6TOH8tTkzYoYxhipyZ1QCkS5Y7DdDa1oVStSeO3WxfqbPO0rg9rJc3vtYU3eMHrMaufYpjxaK8lTG5/H9nyC2qW82NRGokWFePGAMVIugZYomXhCJQeuuEn60e1061lJ2dATvPxdx/CcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752135351; c=relaxed/simple; bh=Krjg/t7nDWHa2mXLc5JnEzzuNN9ZKWLZd+7e/ApwySc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fQLKXucpeVLgjhD0WA2YfryfQXoBQdw8QzPCJC4sTi++/8hElT8lYYQRs85V4b5exoF/X9yyAVl/pu4KfTl4bEnqXttdDk6MOKTnMH++iPuatW20icVfkBnUUZJLlLb/6THTl2TP4K/BVRq2KO0O4ZDbv38OWSQKvm+si+Cr9vg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hzOyvY+k; 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="hzOyvY+k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51C85C4CEE3; Thu, 10 Jul 2025 08:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752135350; bh=Krjg/t7nDWHa2mXLc5JnEzzuNN9ZKWLZd+7e/ApwySc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hzOyvY+knsOpCTEAdiV8vVe987N7hpn/ptnYERFgZbgtpPzCgD+Vlqw5JnH1uTGqA cj1zTOE0j3WiYqa0S3O6C0bXi3pP9M9Z+FZ5qz5ZhifSoYsjrjlXHGVo/2TYzQKyOM w0wI6gGc6px8xLCwodaT43HNnumCMu7DDiNT1UCM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38331: net: ethernet: cortina: Use TOE/TSO on all TCP Date: Thu, 10 Jul 2025 10:15:39 +0200 Message-ID: <2025071033-CVE-2025-38331-aad6@gregkh> X-Mailer: git-send-email 2.50.1 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=3345; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nthB78ISh+4i2w9vwSA8fj8zn6SX5JhgprEMyZVnIvo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5ZUv3nBb5djv0+MkTGXvMnkdvbtM4uvNPksONBbder Lc/faPVoiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmkjKFYX6p3rOjwRssphqs Olhro+Oyveu00yOG+W787dsmC57XPCSuz/Hu2+Ndb29degQA 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: cortina: Use TOE/TSO on all TCP It is desireable to push the hardware accelerator to also process non-segmented TCP frames: we pass the skb->len to the "TOE/TSO" offloader and it will handle them. Without this quirk the driver becomes unstable and lock up and and crash. I do not know exactly why, but it is probably due to the TOE (TCP offload engine) feature that is coupled with the segmentation feature - it is not possible to turn one part off and not the other, either both TOE and TSO are active, or neither of them. Not having the TOE part active seems detrimental, as if that hardware feature is not really supposed to be turned off. The datasheet says: "Based on packet parsing and TCP connection/NAT table lookup results, the NetEngine puts the packets belonging to the same TCP connection to the same queue for the software to process. The NetEngine puts incoming packets to the buffer or series of buffers for a jumbo packet. With this hardware acceleration, IP/TCP header parsing, checksum validation and connection lookup are offloaded from the software processing." After numerous tests with the hardware locking up after something between minutes and hours depending on load using iperf3 I have concluded this is necessary to stabilize the hardware. The Linux kernel CVE team has assigned CVE-2025-38331 to this issue. Affected and fixed versions =========================== Fixed in 6.1.142 with commit 1b503b790109d19710ec83c589c3ee59e95347ec Fixed in 6.6.95 with commit a37888a435b0737128d2d9c6f67b8d608f83df7a Fixed in 6.12.35 with commit 2bd434bb0eeb680c2b3dd6c68ca319b30cb8d47f Fixed in 6.15.4 with commit ebe12e232f1d58ebb4b53b6d9149962b707bed91 Fixed in 6.16-rc1 with commit 6a07e3af4973402fa199a80036c10060b922c92c 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-38331 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/cortina/gemini.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/1b503b790109d19710ec83c589c3ee59e95347ec https://git.kernel.org/stable/c/a37888a435b0737128d2d9c6f67b8d608f83df7a https://git.kernel.org/stable/c/2bd434bb0eeb680c2b3dd6c68ca319b30cb8d47f https://git.kernel.org/stable/c/ebe12e232f1d58ebb4b53b6d9149962b707bed91 https://git.kernel.org/stable/c/6a07e3af4973402fa199a80036c10060b922c92c