{"api_version":"1","generated_at":"2026-12-04T12:43:48+00:00","cve":"CVE-2026-143152","urls":{"html":"https://cve.report/CVE-2026-143152","api":"https://cve.report/api/cve/CVE-2026-143152.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143152","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143152"},"summary":{"title":"tcp: do not coalesce segments after FIN","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: do not coalesce segments after FIN\n\nA FIN consumes a sequence number. If another FIN segment is coalesced\ninto an skb that already carries FIN, end_seq advances to account for\nthe additional FIN, but tcp_flags still contains only one FIN bit.\n\nWhen the preceding gap is filled and tcp_ofo_queue() processes the\ncoalesced skb, rcv_nxt advances to the skb's end_seq. When the receive\npath consumes all data in the skb, copied_seq advances by the data\nlength and one sequence number for FIN. If three or more FIN segments\nhave been coalesced into one skb, tcp_inq() can still return a positive\nvalue after the receive queue becomes empty and the SOCK_DONE adjustment\nis applied.\n\nTCP_ZEROCOPY_RECEIVE is another consumer affected by this state.\ntcp_zerocopy_receive() takes its length from tcp_inq() and follows\nskb->next without checking for the end of the receive queue.\n\nSoftware kTLS receive is one consumer affected by this state. When\nstrp->copy_mode is false, tls_strp_msg_consume() calls the TCP helper\ntcp_read_done() to consume the current TLS record. In the reproducer,\ntcp_read_done() consumed the record data and one FIN before freeing the\nreceive skb.\n\nWhen kTLS looked for the next record, tcp_inq() reported at least\nTLS_HEADER_SIZE bytes even though the receive queue was empty.\ntcp_recv_skb() returned NULL, so tls_strp_load_anchor_with_queue() hit\nWARN_ON_ONCE() and returned without updating the anchor.\n\nSince tcp_inq() had reported at least TLS_HEADER_SIZE,\ntls_strp_read_sock() proceeded to tls_strp_check_queue_ok().\nskb_shinfo(strp->anchor)->frag_list still pointed to the freed receive\nskb. tls_strp_check_queue_ok() then read TCP_SKB_CB(first)->seq through\nthe stale pointer, causing a use-after-free.\n\nThe reproducer followed this call path:\n\n  tls_rx_rec_done()\n    tls_strp_msg_consume()\n      tcp_read_done()                       // frees the receive skb\n    tls_strp_check_rcv()\n      tls_strp_read_sock()\n        tls_strp_load_anchor_with_queue()   // returns after WARN_ON_ONCE()\n          tcp_recv_skb() == NULL\n        tls_strp_check_queue_ok()\n          TCP_SKB_CB(first)->seq            // reads the freed receive skb\n\nKASAN reported:\n\n  BUG: KASAN: slab-use-after-free in tls_strp_check_queue_ok.isra.0+0x5f/0x100\n  Read of size 4 at addr ffff888103169ca8 by task ktls-server/71\n  ...\n  Call Trace:\n   <TASK>\n   ...\n   tls_strp_check_queue_ok.isra.0+0x5f/0x100\n   tls_strp_check_rcv+0x2a9/0x400\n   ...\n   tls_sw_recvmsg+0x3ce/0xa10\n   ...\n   sock_recvmsg+0xea/0x100\n   __sys_recvfrom+0x142/0x1f0\n   ...\n   __x64_sys_recvfrom+0x76/0x90\n   do_syscall_64+0xdd/0x4a0\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n   ...\n   </TASK>\n  ...\n  Freed by task 71:\n   ...\n   napi_skb_cache_put+0x24/0xf0\n   skb_attempt_defer_free+0x183/0x3b0\n   tcp_read_done+0x2d4/0x340\n   tls_strp_msg_consume+0x45/0x80\n   tls_sw_recvmsg+0x3c4/0xa10\n   ...\n\nIn tcp_try_coalesce(), skip coalescing when the destination skb already\ncarries FIN. tcp_add_backlog() calls skb_try_coalesce() directly instead\nof using this helper, so add the same check there. Since both paths check\nonly the destination skb, a final segment carrying data and FIN can still\nbe coalesced into an skb without FIN when the other coalescing checks pass.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:49","updated_at":"2026-12-04 04:17:39"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":9.8,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/c9484616ef9b00343bb880b1f11100822b877b3e","name":"https://git.kernel.org/stable/c/c9484616ef9b00343bb880b1f11100822b877b3e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0fad9b99568afaf017a545302abca2b4b36b319b","name":"https://git.kernel.org/stable/c/0fad9b99568afaf017a545302abca2b4b36b319b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1c46780dec48893b8c25fd5e33a3127e8dc39dd4","name":"https://git.kernel.org/stable/c/1c46780dec48893b8c25fd5e33a3127e8dc39dd4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143152","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143152","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e93a0435f809d009919a743fb6e93076faac8aa7 0fad9b99568afaf017a545302abca2b4b36b319b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e93a0435f809d009919a743fb6e93076faac8aa7 c9484616ef9b00343bb880b1f11100822b877b3e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e93a0435f809d009919a743fb6e93076faac8aa7 1c46780dec48893b8c25fd5e33a3127e8dc39dd4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143152","cve":"CVE-2026-143152","epss":"0.002060000","percentile":"0.113210000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/ipv4/tcp_input.c","net/ipv4/tcp_ipv4.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"0fad9b99568afaf017a545302abca2b4b36b319b","status":"affected","version":"e93a0435f809d009919a743fb6e93076faac8aa7","versionType":"git"},{"lessThan":"c9484616ef9b00343bb880b1f11100822b877b3e","status":"affected","version":"e93a0435f809d009919a743fb6e93076faac8aa7","versionType":"git"},{"lessThan":"1c46780dec48893b8c25fd5e33a3127e8dc39dd4","status":"affected","version":"e93a0435f809d009919a743fb6e93076faac8aa7","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/ipv4/tcp_input.c","net/ipv4/tcp_ipv4.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.18"},{"lessThan":"3.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"3.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"3.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: do not coalesce segments after FIN\n\nA FIN consumes a sequence number. If another FIN segment is coalesced\ninto an skb that already carries FIN, end_seq advances to account for\nthe additional FIN, but tcp_flags still contains only one FIN bit.\n\nWhen the preceding gap is filled and tcp_ofo_queue() processes the\ncoalesced skb, rcv_nxt advances to the skb's end_seq. When the receive\npath consumes all data in the skb, copied_seq advances by the data\nlength and one sequence number for FIN. If three or more FIN segments\nhave been coalesced into one skb, tcp_inq() can still return a positive\nvalue after the receive queue becomes empty and the SOCK_DONE adjustment\nis applied.\n\nTCP_ZEROCOPY_RECEIVE is another consumer affected by this state.\ntcp_zerocopy_receive() takes its length from tcp_inq() and follows\nskb->next without checking for the end of the receive queue.\n\nSoftware kTLS receive is one consumer affected by this state. When\nstrp->copy_mode is false, tls_strp_msg_consume() calls the TCP helper\ntcp_read_done() to consume the current TLS record. In the reproducer,\ntcp_read_done() consumed the record data and one FIN before freeing the\nreceive skb.\n\nWhen kTLS looked for the next record, tcp_inq() reported at least\nTLS_HEADER_SIZE bytes even though the receive queue was empty.\ntcp_recv_skb() returned NULL, so tls_strp_load_anchor_with_queue() hit\nWARN_ON_ONCE() and returned without updating the anchor.\n\nSince tcp_inq() had reported at least TLS_HEADER_SIZE,\ntls_strp_read_sock() proceeded to tls_strp_check_queue_ok().\nskb_shinfo(strp->anchor)->frag_list still pointed to the freed receive\nskb. tls_strp_check_queue_ok() then read TCP_SKB_CB(first)->seq through\nthe stale pointer, causing a use-after-free.\n\nThe reproducer followed this call path:\n\n  tls_rx_rec_done()\n    tls_strp_msg_consume()\n      tcp_read_done()                       // frees the receive skb\n    tls_strp_check_rcv()\n      tls_strp_read_sock()\n        tls_strp_load_anchor_with_queue()   // returns after WARN_ON_ONCE()\n          tcp_recv_skb() == NULL\n        tls_strp_check_queue_ok()\n          TCP_SKB_CB(first)->seq            // reads the freed receive skb\n\nKASAN reported:\n\n  BUG: KASAN: slab-use-after-free in tls_strp_check_queue_ok.isra.0+0x5f/0x100\n  Read of size 4 at addr ffff888103169ca8 by task ktls-server/71\n  ...\n  Call Trace:\n   <TASK>\n   ...\n   tls_strp_check_queue_ok.isra.0+0x5f/0x100\n   tls_strp_check_rcv+0x2a9/0x400\n   ...\n   tls_sw_recvmsg+0x3ce/0xa10\n   ...\n   sock_recvmsg+0xea/0x100\n   __sys_recvfrom+0x142/0x1f0\n   ...\n   __x64_sys_recvfrom+0x76/0x90\n   do_syscall_64+0xdd/0x4a0\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n   ...\n   </TASK>\n  ...\n  Freed by task 71:\n   ...\n   napi_skb_cache_put+0x24/0xf0\n   skb_attempt_defer_free+0x183/0x3b0\n   tcp_read_done+0x2d4/0x340\n   tls_strp_msg_consume+0x45/0x80\n   tls_sw_recvmsg+0x3c4/0xa10\n   ...\n\nIn tcp_try_coalesce(), skip coalescing when the destination skb already\ncarries FIN. tcp_add_backlog() calls skb_try_coalesce() directly instead\nof using this helper, so add the same check there. Since both paths check\nonly the destination skb, a final segment carrying data and FIN can still\nbe coalesced into an skb without FIN when the other coalescing checks pass."}],"metrics":[{"cvssV3_1":{"baseScore":9.8,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:N - A remote peer's TCP segment carries the extra FIN. tcp_v4_rcv() sets TCP_SKB_CB()->end_seq from th->fin in tcp_v4_fill_cb(), and tcp_rcv_established()->tcp_data_queue()->tcp_data_queue_ofo() merges those segments in tcp_try_coalesce(); tcp_add_backlog() does the same while the socket lock is held.\nAC:L - The peer creates a sequence hole, sends in-window FIN segments whose seq equals the previous end_seq so tcp_ooo_try_coalesce() merges them before tcp_fin(), then fills the hole. skb_try_coalesce() accepts zero-length FINs whenever the destination skb is uncloned, so three or more FINs land reliably.\nPR:N - Any remote host that completes a TCP handshake reaches tcp_v4_rcv() and tcp_data_queue_ofo() with no credential check. Sequence numbers are the attacker's own; kTLS RX on the server, if used, is installed by the application after the handshake and does not authenticate the peer.\nUI:N - The attacker alone sends the gapped data, the adjacent FIN segments, and the segment that fills the hole. Consumption is the server's normal recvmsg (tls_sw_recvmsg) or TCP_ZEROCOPY_RECEIVE, not a separate mount or user action.\nS:U - The inflated end_seq, the freed receive skb, and the later reads in tls_strp_check_queue_ok() or tcp_zerocopy_receive() all belong to the host kernel's TCP stack. Nothing here crosses a guest, IOMMU, or container boundary.\nC:H - tcp_read_done() frees the receive skb via skb_attempt_defer_free() while skb_shinfo(strp->anchor)->frag_list still points at it. tls_strp_check_queue_ok() reads TCP_SKB_CB(first)->seq and tls_rx_msg_size() copies from that skb with skb_copy_bits(); reclaiming the freed sk_buff or its released head discloses kernel memory.\nI:H - tls_decrypt_sg() feeds that dangling frag_list skb to skb_to_sgvec(), and tls_strp_msg_hold() skb_clone() writes skb->cloned and skb_shinfo()->dataref on the freed object. tcp_zerocopy_receive() also vm_insert_pages()s frags after following skb->next past the end of the receive queue.\nA:H - KASAN reports a slab-use-after-free read in tls_strp_check_queue_ok() from tls_sw_recvmsg() after tcp_read_done() frees the skb. tcp_zerocopy_receive() also sizes the copy from the inflated tcp_inq() and follows skb->next with no end-of-queue check, dereferencing the receive-queue sentinel as an skb."}]}],"providerMetadata":{"dateUpdated":"2026-12-04T03:30:04.440Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/0fad9b99568afaf017a545302abca2b4b36b319b"},{"url":"https://git.kernel.org/stable/c/c9484616ef9b00343bb880b1f11100822b877b3e"},{"url":"https://git.kernel.org/stable/c/1c46780dec48893b8c25fd5e33a3127e8dc39dd4"}],"title":"tcp: do not coalesce segments after FIN","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143152","datePublished":"2026-12-03T09:19:54.572Z","dateReserved":"2026-12-03T03:10:28.355Z","dateUpdated":"2026-12-04T03:30:04.440Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:49","lastModifiedDate":"2026-12-04 04:17:39","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143152","Ordinal":"1","Title":"tcp: do not coalesce segments after FIN","CVE":"CVE-2026-143152","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143152","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: do not coalesce segments after FIN\n\nA FIN consumes a sequence number. If another FIN segment is coalesced\ninto an skb that already carries FIN, end_seq advances to account for\nthe additional FIN, but tcp_flags still contains only one FIN bit.\n\nWhen the preceding gap is filled and tcp_ofo_queue() processes the\ncoalesced skb, rcv_nxt advances to the skb's end_seq. When the receive\npath consumes all data in the skb, copied_seq advances by the data\nlength and one sequence number for FIN. If three or more FIN segments\nhave been coalesced into one skb, tcp_inq() can still return a positive\nvalue after the receive queue becomes empty and the SOCK_DONE adjustment\nis applied.\n\nTCP_ZEROCOPY_RECEIVE is another consumer affected by this state.\ntcp_zerocopy_receive() takes its length from tcp_inq() and follows\nskb->next without checking for the end of the receive queue.\n\nSoftware kTLS receive is one consumer affected by this state. When\nstrp->copy_mode is false, tls_strp_msg_consume() calls the TCP helper\ntcp_read_done() to consume the current TLS record. In the reproducer,\ntcp_read_done() consumed the record data and one FIN before freeing the\nreceive skb.\n\nWhen kTLS looked for the next record, tcp_inq() reported at least\nTLS_HEADER_SIZE bytes even though the receive queue was empty.\ntcp_recv_skb() returned NULL, so tls_strp_load_anchor_with_queue() hit\nWARN_ON_ONCE() and returned without updating the anchor.\n\nSince tcp_inq() had reported at least TLS_HEADER_SIZE,\ntls_strp_read_sock() proceeded to tls_strp_check_queue_ok().\nskb_shinfo(strp->anchor)->frag_list still pointed to the freed receive\nskb. tls_strp_check_queue_ok() then read TCP_SKB_CB(first)->seq through\nthe stale pointer, causing a use-after-free.\n\nThe reproducer followed this call path:\n\n  tls_rx_rec_done()\n    tls_strp_msg_consume()\n      tcp_read_done()                       // frees the receive skb\n    tls_strp_check_rcv()\n      tls_strp_read_sock()\n        tls_strp_load_anchor_with_queue()   // returns after WARN_ON_ONCE()\n          tcp_recv_skb() == NULL\n        tls_strp_check_queue_ok()\n          TCP_SKB_CB(first)->seq            // reads the freed receive skb\n\nKASAN reported:\n\n  BUG: KASAN: slab-use-after-free in tls_strp_check_queue_ok.isra.0+0x5f/0x100\n  Read of size 4 at addr ffff888103169ca8 by task ktls-server/71\n  ...\n  Call Trace:\n   <TASK>\n   ...\n   tls_strp_check_queue_ok.isra.0+0x5f/0x100\n   tls_strp_check_rcv+0x2a9/0x400\n   ...\n   tls_sw_recvmsg+0x3ce/0xa10\n   ...\n   sock_recvmsg+0xea/0x100\n   __sys_recvfrom+0x142/0x1f0\n   ...\n   __x64_sys_recvfrom+0x76/0x90\n   do_syscall_64+0xdd/0x4a0\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n   ...\n   </TASK>\n  ...\n  Freed by task 71:\n   ...\n   napi_skb_cache_put+0x24/0xf0\n   skb_attempt_defer_free+0x183/0x3b0\n   tcp_read_done+0x2d4/0x340\n   tls_strp_msg_consume+0x45/0x80\n   tls_sw_recvmsg+0x3c4/0xa10\n   ...\n\nIn tcp_try_coalesce(), skip coalescing when the destination skb already\ncarries FIN. tcp_add_backlog() calls skb_try_coalesce() directly instead\nof using this helper, so add the same check there. Since both paths check\nonly the destination skb, a final segment carrying data and FIN can still\nbe coalesced into an skb without FIN when the other coalescing checks pass.","Type":"Description","Title":"tcp: do not coalesce segments after FIN"}]}}}