{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143240",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.361Z",
        "datePublished": "2026-12-03T09:20:53.064Z",
        "dateUpdated": "2026-12-04T03:31:41.566Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:31:41.566Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: rate limit receive queue collapsing\n\nWhen a socket is over its receive buffer limit and its sk_rcvbuf can\nnot grow, every incoming segment that needs memory goes through\ntcp_prune_queue(), which runs tcp_collapse_ofo_queue() and tcp_collapse()\non the receive queue. Both walk their whole queue, even when there is\nnothing left to collapse.\n\nA peer can trigger this walk per packet, without refilling memory:\n\n1) The segment lands last in the out-of-order queue. Since commit\n   b0e01253a764 (\"tcp: refine tcp_prune_ofo_queue() logic\"),\n   tcp_prune_ofo_queue() drops nothing, the segment is dropped and\n   the queues are unchanged. The peer can send it again forever.\n\n2) The segment lands second to last: one skb is pruned, and one small\n   segment fills that space again.\n\n3) The out-of-order queue is empty and the receive queue alone is over\n   the limit (application not reading). Collapsing frees nothing,\n   the out-of-order segment is dropped, and the window is not closed.\n\n4) Collapsing frees just one skb, enough to queue the segment. The next\n   segment is over the limit again.\n\nOnly allow a collapse if at least 1/8 of sk_rcvbuf of new memory was\nqueued in the receive queues since the previous collapse. This restores\nthe \"12.5 % of the queue capacity\" amortization of the 2018 SegmentSmack\nfixes (CVE-2018-5390), using the same unit as the sk_rcvbuf limit, so\nthat peers sending small (bloated) segments are not penalized.\n\nThe credit is the net growth of sk_rmem_alloc in tcp_queue_rcv() and\ntcp_data_queue_ofo(), so that:\n\n- Coalescing a segment into the tailroom of the previous skb charges no\n  memory, and earns no credit.\n- An out-of-order segment replacing or covering queued skbs only earns\n  the memory it adds.\n- Duplicates earn nothing.\n- Data moved from the out-of-order queue to the receive queue\n  (tcp_ofo_queue()) is not credited twice.\n\nIn-order data is credited too, so that a receive queue filled by\nbloated in-order segments can still be collapsed when a hole appears.\n\nIn-order segments are rate limited as well: a peer could otherwise send\nsmall in-order segments that each trigger a collapse freeing a single\nskb, enough to queue the segment, while the out-of-order queue holds\nmany skbs that can not be collapsed.\n\nThe credit is tracked in a new u32 tp->rcv_collapse_credit, placed in a\nhole of the tcp_sock_write_rx group: no other field moves, and tcp_sock\nsize is unchanged. tcp_queue_rcv() now samples sk_rmem_alloc, and\nwrites the credit until it saturates at sk_rcvbuf, so that the fast path\nstops writing it after a full buffer of new memory. Saturating at the\ngoal would not work: sk_rcvbuf, and the goal with it, can grow later\n(for instance in tcp_clamp_window(), just before the goal is checked),\nand a socket over its limit can not earn more credit until the\napplication reads.\n\nWhen collapsing is not allowed, tcp_prune_queue() goes directly to\ntcp_prune_ofo_queue(), which is cheap in the cases above.\n\nA regular flow can see a difference when it goes over its limit before\n1/8 of sk_rcvbuf of new memory was queued since the previous collapse:\nout-of-order skbs can be pruned (even for an in-order segment filling a\nhole), and an in-order segment that still does not fit is dropped,\nwith a zero window advertised, where a collapse might have made room."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                        "baseScore": 7.5,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - A remote peer's TCP data segment is what reaches the patched tcp_prune_queue. tcp_v4_rcv or tcp_v6_rcv passes it to tcp_v4_do_rcv or tcp_v6_do_rcv, then tcp_rcv_established, tcp_data_queue, and tcp_data_queue_ofo, which calls tcp_try_rmem_schedule. TCP is a routable IP protocol.\nAC:L - The peer completes the handshake and sends out-of-order data until sk_rmem_alloc exceeds sk_rcvbuf after tcp_clamp_window and tcp_rcvbuf_grow have stopped raising it at sysctl_tcp_rmem[2], then retransmits a segment whose seq is after ooo_last_skb. tcp_prune_ofo_queue breaks without dropping, so the queues stay unchanged and every retransmit repeats the walk.\nPR:N - tcp_v4_rcv and tcp_v6_rcv deliver that established segment with no credential check, and tcp_data_queue_ofo calls tcp_prune_queue before any application authentication. The peer needs no local uid or capability.\nUI:N - The attacker opens the connection and sends the out-of-order segments plus the repeating segment that sorts after ooo_last_skb. The service is already listening; no mount, file open, or other local action is required.\nS:U - tcp_prune_queue's walks run on the host socket that received the segment. They do not cross a guest-to-host, IOMMU, or sandbox boundary.\nC:N - tcp_collapse copies only this socket's queued payload into a replacement skb, and a segment that sorts after ooo_last_skb is dropped with both queues unchanged. No bytes from outside that payload are returned to the peer.\nI:N - The collapse stores only into a new skb that replaces contiguous skbs already queued on this socket, and the last-sorting segment is freed without modifying either queue. There is no out-of-bounds store and no control-flow hijack.\nA:H - With sk_rmem_alloc above sk_rcvbuf, tcp_prune_queue runs tcp_collapse_ofo_queue and tcp_collapse on every segment even when both free nothing. A seq past ooo_last_skb makes tcp_prune_ofo_queue drop nothing; the OFO path never sets ICSK_ACK_NOMEM, and with sysctl_tcp_shrink_window left at 0 tcp_select_window keeps the old rcv_wnd, so each retransmit repeats that bh-locked walk for the whole flood."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "Documentation/networking/net_cachelines/tcp_sock.rst",
                        "include/linux/tcp.h",
                        "net/ipv4/tcp.c",
                        "net/ipv4/tcp_input.c"
                    ],
                    "versions": [
                        {
                            "version": "b0e01253a764faab9ecf56c0759e6b06470eb9ff",
                            "lessThan": "56874f7cc8f1157a35ba5376125a4fc8874a1eb0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b0e01253a764faab9ecf56c0759e6b06470eb9ff",
                            "lessThan": "b286ee1cfb2d6a0cb4b9564d15508ce33d8a0506",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b0e01253a764faab9ecf56c0759e6b06470eb9ff",
                            "lessThan": "c2213d9b61c1d6e99645a636630ee767c7542f78",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "Documentation/networking/net_cachelines/tcp_sock.rst",
                        "include/linux/tcp.h",
                        "net/ipv4/tcp.c",
                        "net/ipv4/tcp_input.c"
                    ],
                    "versions": [
                        {
                            "version": "6.2",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.2",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc3",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.2",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.2",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.2",
                                    "versionEndExcluding": "7.4-rc3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/56874f7cc8f1157a35ba5376125a4fc8874a1eb0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b286ee1cfb2d6a0cb4b9564d15508ce33d8a0506"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c2213d9b61c1d6e99645a636630ee767c7542f78"
                }
            ],
            "title": "tcp: rate limit receive queue collapsing",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}