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.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Possible clear‑text transmission of encrypted data and connection stalls leading to privacy exposure and denial of service
Action: Patch Immediately
AI Analysis

Impact

A flaw in the Linux kernel’s TCP stack allows two types of skbs—one already queued for transmission and another added after a switch to device or TLS encryption—to be merged during retransmission or SACK processing. The merge removes the encrypted flag from the later skb, resulting in unencrypted data being sent over the network. In systems using PS‑L4 switch protection (psp), the merged skb remains decrypted, so retransmitted data leaves the host in clear text, exposing sensitive traffic. In TLS device‑offload paths, a merged skb that straddles the TLS start marker cannot be processed by software or hardware drivers, causing the connection to stall whenever a retransmission occurs.

Affected Systems

Affected systems are all Linux kernel builds that implement the TCP write queue and retransmission logic, specifically those using psp devices that encrypt only skb with skb->decrypted set, and those employing TLS offloading via mlx5, nfp, or funeth drivers. No specific kernel versions are listed, so any current Linux kernel running such devices is potentially impacted.

Risk and Exploitability

The vulnerability provides an avenue for an attacker who can influence TCP traffic after the encryption switch—either by sending crafted packets or by exploiting the retransmission behavior—to cause sensitive data to be transmitted in plaintext, violating confidentiality. It also offers a path to denial of service by forcing a reconnect loop in TLS offload configurations. EPSS information is unavailable and the issue is not listed in CISA’s KEV catalog, but the described impact indicates a potentially high severity. The attack vector is inferred to be local or remote network traffic manipulation, as the flaw is triggered during packet retransmission handling in the kernel.

Generated by OpenCVE AI on October 18, 2026 at 18:08 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that implements the two fix paths: falling back to tcp_rtx_queue_tail when tcp_write_queue_tail is null, and checking that decrypted flags match before collapsing skbs
  • Restart or reload affected network services to ensure the updated kernel is in use
  • If an immediate kernel upgrade is not possible, disable hardware encryption or TLS offload drivers until the patch is applied to prevent cleartext leaks and connection stalls

Generated by OpenCVE AI on October 18, 2026 at 18:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200
CWE-310

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title tcp: prevent collapsing skbs across boundary in rtx queue
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-18T15:18:17.361Z

Reserved: 2026-09-25T10:25:14.356Z

Link: CVE-2026-98549

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:06.913

Modified: 2026-10-18T16:17:06.913

Link: CVE-2026-98549

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T18:15:15Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-310