{"id":"CVE-2026-98549","title":"tcp: prevent collapsing skbs across boundary in rtx queue","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: prevent collapsing skbs across boundary in rtx queue\n\ntcp_write_collapse_fence() sets TCP_SKB_CB(skb)->eor = 1 on\ntcp_write_queue_tail(sk) to prevent skbs queued a…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= e8f69799810c32dd40c6724d829eccc70baad07f < 1ae7aee395245874d797890380d9192bd858fb7e","Linux >= e8f69799810c32dd40c6724d829eccc70baad07f < 7ba87509c54cd519e7ed362e0c85e8431f066a18","Linux >= e8f69799810c32dd40c6724d829eccc70baad07f < 08e835f5ec6e261c79d8c39f8618b3af29e3b0da","Linux >= e8f69799810c32dd40c6724d829eccc70baad07f < fc6d80eb504458d6416b75a94188b268c95c6533","Linux 4.18"],"published":"2026-10-18","updated":"2026-10-18","sourceUpdated":"2026-10-18T15:18:17.361Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98549","references":[{"url":"https://git.kernel.org/stable/c/1ae7aee395245874d797890380d9192bd858fb7e"},{"url":"https://git.kernel.org/stable/c/7ba87509c54cd519e7ed362e0c85e8431f066a18"},{"url":"https://git.kernel.org/stable/c/08e835f5ec6e261c79d8c39f8618b3af29e3b0da"},{"url":"https://git.kernel.org/stable/c/fc6d80eb504458d6416b75a94188b268c95c6533"}],"tags":["cve.org"],"ingestedAt":"2026-10-18T15:45:12.265Z","slug":"CVE-2026-98549","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\ntcp: prevent collapsing skbs across boundary in rtx queue\n\ntcp_write_collapse_fence() sets TCP_SKB_CB(skb)->eor = 1 on\ntcp_write_queue_tail(sk) to prevent skbs queued after a switch to\ndevice encryption from being collapsed into earlier skbs.\n\nThe fence is a no-op if all earlier data has already been transmitted\nwhen the switch happens: sk->sk_write_queue is empty. The not yet\nacknowledged earlier skbs wait in sk->tcp_rtx_queue with eor 0.\n\nOn a subsequent retransmit or SACK shift, tcp_retrans_try_collapse() or\ntcp_shift_skb_data() can then merge an skb queued after the switch into\none queued before it.\n\nBoth users of the fence are affected:\n\n- psp: devices only encrypt skbs with skb->decrypted set. The merged skb\n  keeps decrypted = 0 from the earlier skb, so merged data sent after\n  psp_sock_assoc_set_tx() is retransmitted in cleartext.\n\n- tls device offload: the merged skb straddles the start marker set in\n  tls_set_device_offload(). The software fallback (fill_sg_in() returns\n  -EINVAL) and the mlx5, nfp and funeth drivers cannot handle such an\n  skb and drop it. Every retransmit rebuilds the same skb, so the\n  connection stalls.\n\nFix this in two places, for defense in depth:\n\n1. Fall back to tcp_rtx_queue_tail(sk) in tcp_write_collapse_fence()\n   when tcp_write_queue_tail(sk) is NULL.\n\n2. Check !skb_cmp_decrypted(to, from) in tcp_skb_can_collapse(), as\n   tcp_skb_can_collapse_rx() does on receive. skb_shift(), which both\n   collapse paths call, already has a DEBUG_NET_WARN_ON_ONCE() for this\n   condition.\n\n## Affected\n\n- `Linux >= e8f69799810c32dd40c6724d829eccc70baad07f < 1ae7aee395245874d797890380d9192bd858fb7e`\n- `Linux >= e8f69799810c32dd40c6724d829eccc70baad07f < 7ba87509c54cd519e7ed362e0c85e8431f066a18`\n- `Linux >= e8f69799810c32dd40c6724d829eccc70baad07f < 08e835f5ec6e261c79d8c39f8618b3af29e3b0da`\n- `Linux >= e8f69799810c32dd40c6724d829eccc70baad07f < fc6d80eb504458d6416b75a94188b268c95c6533`\n- `Linux 4.18`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}