Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 56D434D1797 for ; Sun, 18 Oct 2026 15:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337264; cv=none; b=Qt0im6ZI8ItZS7aFBHpyPZ/+lhkMzGXVZKwEDzVVTrk6BT1sTgZAhC5g68nkbB+Gmq260pBZZU7a9X9nomT8XoMmTGrHiSCeWa09O4PdRyNWuVHkdBlG+Hhx4H8QwM7ibn2MHkpZcuppRs2aqEzn5c8BPRBnjnd2h7zA/BC8X4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337264; c=relaxed/simple; bh=VDqwCfIA05Wlso1Pv8JEPkHsQbRCIndPZSQBXFHDk2I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VwwCi/ZHFdu/+admiov071ddR1d/+I/8qrHMzjNDXN72XqmV944duiQCcZTF27gfPUghwBdeRMQuM+ieUlSyNFFlWSltTAI73ZeZquO3pIlX+sFz4MXItuQwbTt0cSITQ3NJVVz9SaT62++IatJfJrjcMWf0A1YTQG0wHezZ5uA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DkXjq7Ov; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DkXjq7Ov" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C7661F000C4; Sun, 18 Oct 2026 15:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337260; bh=OwJx9uQ5nzFjGyBJmxPy27dKCrgyLJXqYZQaMIQ8Pls=; h=From:To:Cc:Subject:Date:Reply-To; b=DkXjq7OvDjZdD0scMxgyVAQtmyGXAlIOub8/anlD4NwwTyJRnWBftyVsX9ns+3vzK GKVaA1WFXRQiMFkV3iYBZzzO0PKmg9uUdHi/D3pPSlFbpTHbxz5cxPF3dA1aR83U2L 20GpPgSPH97/ely4Ro8Hng+g/LFpdElE2sVB4IEI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98549: tcp: prevent collapsing skbs across boundary in rtx queue Date: Sun, 18 Oct 2026 17:16:53 +0200 Message-ID: <2026101828-CVE-2026-98549-48b8@gregkh> X-Mailer: git-send-email 2.56.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=3727; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zafsPM3jCak32r+sdpo99Oz/YIwSTEejbeycimyt+MQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHk34v8BdhUv0s8qaE7J25z/qaf7U+pQhlPHSOybwf WWcsJNnRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk51aGeQYu8YHRDyMCNzW8 TGM2unjx+F1eX4bZrMJ39UzfTpJeXar9pGDRop1CRosSAA== 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: tcp: prevent collapsing skbs across boundary in rtx queue tcp_write_collapse_fence() sets TCP_SKB_CB(skb)->eor = 1 on tcp_write_queue_tail(sk) to prevent skbs queued after a switch to device encryption from being collapsed into earlier skbs. The fence is a no-op if all earlier data has already been transmitted when the switch happens: sk->sk_write_queue is empty. The not yet acknowledged earlier skbs wait in sk->tcp_rtx_queue with eor 0. On a subsequent retransmit or SACK shift, tcp_retrans_try_collapse() or tcp_shift_skb_data() can then merge an skb queued after the switch into one queued before it. Both users of the fence are affected: - psp: devices only encrypt skbs with skb->decrypted set. The merged skb keeps decrypted = 0 from the earlier skb, so merged data sent after psp_sock_assoc_set_tx() is retransmitted in cleartext. - tls device offload: the merged skb straddles the start marker set in tls_set_device_offload(). The software fallback (fill_sg_in() returns -EINVAL) and the mlx5, nfp and funeth drivers cannot handle such an skb and drop it. Every retransmit rebuilds the same skb, so the connection stalls. Fix this in two places, for defense in depth: 1. Fall back to tcp_rtx_queue_tail(sk) in tcp_write_collapse_fence() when tcp_write_queue_tail(sk) is NULL. 2. Check !skb_cmp_decrypted(to, from) in tcp_skb_can_collapse(), as tcp_skb_can_collapse_rx() does on receive. skb_shift(), which both collapse paths call, already has a DEBUG_NET_WARN_ON_ONCE() for this condition. The Linux kernel CVE team has assigned CVE-2026-98549 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit e8f69799810c32dd40c6724d829eccc70baad07f and fixed in 6.12.112 with commit 1ae7aee395245874d797890380d9192bd858fb7e Issue introduced in 4.18 with commit e8f69799810c32dd40c6724d829eccc70baad07f and fixed in 6.18.55 with commit 7ba87509c54cd519e7ed362e0c85e8431f066a18 Issue introduced in 4.18 with commit e8f69799810c32dd40c6724d829eccc70baad07f and fixed in 7.2.9 with commit 08e835f5ec6e261c79d8c39f8618b3af29e3b0da Issue introduced in 4.18 with commit e8f69799810c32dd40c6724d829eccc70baad07f and fixed in 7.3-rc5 with commit fc6d80eb504458d6416b75a94188b268c95c6533 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-2026-98549 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: include/net/tcp.h 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/1ae7aee395245874d797890380d9192bd858fb7e https://git.kernel.org/stable/c/7ba87509c54cd519e7ed362e0c85e8431f066a18 https://git.kernel.org/stable/c/08e835f5ec6e261c79d8c39f8618b3af29e3b0da https://git.kernel.org/stable/c/fc6d80eb504458d6416b75a94188b268c95c6533