Linux Kernel CVE-2026-143152: 9.8 TCP Use-After-Free After FIN
Linux kernel CVE-2026-143152: a 9.8 TCP use-after-free after FIN
The Linux kernel CNA published 75 CVEs on December 3, 2026. The highest-scored entry is CVE-2026-143152, a use-after-free in TCP receive coalescing with a CVSS 3.1 score of 9.8. The flaw sits in the code that merges TCP segments after a FIN. It can leave the receive queue claiming data that has already been consumed, and a caller that trusts that claim can read freed memory.
What the bug does
A FIN consumes a sequence number. When another FIN segment is coalesced into an skb that already carries FIN, end_seq advances to account for the extra FIN, but tcp_flags still records only one FIN bit. If the preceding gap is filled and tcp_ofo_queue() processes the coalesced skb, rcv_nxt moves to the skb’s end_seq. The receive path then consumes the data and one sequence number for FIN. With three or more FIN segments merged into one skb, tcp_inq() can still report a positive length after the receive queue is empty.
That stale length is the opening. Software kTLS receive is the path demonstrated in the CVE record. When strp->copy_mode is false, tls_strp_msg_consume() calls tcp_read_done(), which consumes the TLS record and one FIN before freeing the receive skb. kTLS then looks for the next record. tcp_inq() reports at least TLS_HEADER_SIZE bytes despite the empty queue, while tcp_recv_skb() returns NULL. tls_strp_load_anchor_with_queue() hits WARN_ON_ONCE() and returns without updating the anchor. tls_strp_read_sock() continues into tls_strp_check_queue_ok(), where skb_shinfo(strp->anchor)->frag_list still points at the freed skb. The check then reads TCP_SKB_CB(first)->seq through that pointer.
KASAN reports the result as slab-use-after-free in tls_strp_check_queue_ok.isra.0. TCP_ZEROCOPY_RECEIVE is a second consumer affected by the same receive-state mismatch: tcp_zerocopy_receive() takes its length from tcp_inq() and follows skb->next without checking for the end of the receive queue.
Affected versions
The OSV record lists two affected ranges in the stable tree:
| Line | Affected | Fixed |
|---|---|---|
| 6.18 and earlier | 3.18.0 through 6.18.65 | 6.18.66 |
| 6.19 through 7.3 | 6.19.0 through 7.3.6 | 7.3.7 |
Distribution kernels backport fixes and use their own version numbers. Check the kernel package changelog or your vendor’s advisory rather than comparing uname -r to the stable tags alone. The CVE record lists the upstream fixes as commits 0fad9b99568a, c9484616ef9b, and 1c46780dec48 in the stable tree.
Who can reach it
The CVSS vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, which is where the 9.8 comes from. The demonstrated crash path is not a bare TCP handshake. It runs through a local consumer of the receive queue, specifically software kTLS receive, with TCP_ZEROCOPY_RECEIVE as another consumer of the same bad state. Services that terminate TLS in the kernel should treat this as a priority. So should applications that use zerocopy receive on TCP sockets.
The record does not claim that every unpatched host is remotely exploitable in the default configuration. It documents a reachable use-after-free once the affected receive path is in use. That distinction matters for triage, but it is not a reason to delay patching a 9.8 kernel bug.
What the fix changes
tcp_try_coalesce() now skips coalescing when the destination skb already carries FIN. tcp_add_backlog() calls skb_try_coalesce() directly, so it gets the same check. The record notes one remaining case: a final segment carrying data and FIN can still be coalesced into an skb without FIN when the other coalescing checks pass. That is deliberate; the guard is about adding a second FIN to an skb that already has one.
What to do
- Update to 6.18.66 or later on the 6.18 line, or 7.3.7 or later on the 7.3 line, or to the fixed kernel your distribution ships. Reboot, then confirm the running kernel with
uname -r. - Inventory kernel TLS users. Look for
setsockopt(..., TCP_ULP, "tls", ...)and for services that enable kTLS receive. IncludeTCP_ZEROCOPY_RECEIVEusers in the same pass. - If a host cannot be patched on schedule, disable kTLS for the exposed service or stop using zerocopy receive on its TCP sockets. Those are containment steps for specific applications, not a host-wide fix.
- Watch kernel logs for
WARN_ON_ONCEfromtls_strp_load_anchor_with_queue. The use-after-free itself is reported by KASAN, which production kernels usually do not enable, so absence of a KASAN splat is not evidence that the bug is absent.
The batch contains 74 other kernel CVEs, and most will not carry a 9.8. This one combines a network-facing subsystem, a memory-safety failure, and a fix that is already in stable. Patch it first, then work through the rest of the batch on your normal kernel cadence.
