Summary
In the Linux kernel TCP stack, when multiple FIN segments are coalesced into the same skb, the sequence number advances for each FIN, but only one FIN flag is kept. As a result, tcp_inq() can report data in the receive queue even though the queue is empty. This affects software kTLS receive and TCP_ZEROCOPY_RECEIVE. In the kTLS case it leads to a read of already freed memory (use-after-free), as confirmed by KASAN.
Per the CVSS vector (9.8, critical), the attack is network-based and low complexity, requiring no authentication and no user interaction. The potential impact on confidentiality, integrity and availability is high. The vulnerability is not listed in CISA KEV. EPSS is about 1.1%.
The fix prevents coalescing into an skb that already carries FIN, in both tcp_try_coalesce() and tcp_add_backlog().
Who is affected
This affects all organizations running Linux systems with kernels from 3.18 onward that lack the fix, particularly servers using kernel TLS (kTLS) or TCP zero-copy receive.
What to do
- Update the kernel to a fixed version: 6.1.194, 6.6.164, 6.12.121, 6.18.66, 7.3.7 or 7.4-rc3 (or later in the same branch).
- For distribution kernels, check your distribution's official security advisories and confirm that commit b56599dde0a5, 897fc9de5654, 9d3b50c1ae08, 0fad9b99568a, c9484616ef9b or 1c46780dec48 is included.
- Assess exposure: check the kernel version (uname -r) and whether kTLS (tls module loaded) or TCP_ZEROCOPY_RECEIVE is in use.
- Reboot after updating so the new kernel is actually loaded. Prioritize internet-facing systems.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
References
- git.kernel.org/stable/c/b56599dde0a51288d2d06b614493b38326062320
- git.kernel.org/stable/c/897fc9de565494ee25f0c5e780885fe1bafb6c01
- git.kernel.org/stable/c/9d3b50c1ae0837d657de694d8a899d9ef77794de
- git.kernel.org/stable/c/0fad9b99568afaf017a545302abca2b4b36b319b
- git.kernel.org/stable/c/c9484616ef9b00343bb880b1f11100822b877b3e
- git.kernel.org/stable/c/1c46780dec48893b8c25fd5e33a3127e8dc39dd4
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.