CVE-2026-143240: tcp: rate limit receive queue collapsing

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

tcp: rate limit receive queue collapsing

When a socket is over its receive buffer limit and its skrcvbuf can not grow, every incoming segment that needs memory goes through tcpprunequeue(), which runs tcpcollapseofoqueue() and tcpcollapse() on the receive queue. Both walk their whole queue, even when there is nothing left to collapse.

A peer can trigger this walk per packet, without refilling memory:

1) The segment lands last in the out-of-order queue. Since commit b0e01253a764 ("tcp: refine tcppruneofoqueue() logic"), tcppruneofoqueue() drops nothing, the segment is dropped and the queues are unchanged. The peer can send it again forever.

2) The segment lands second to last: one skb is pruned, and one small segment fills that space again.

3) The out-of-order queue is empty and the receive queue alone is over the limit (application not reading). Collapsing frees nothing, the out-of-order segment is dropped, and the window is not closed.

4) Collapsing frees just one skb, enough to queue the segment. The next segment is over the limit again.

Only allow a collapse if at least 1/8 of skrcvbuf of new memory was queued in the receive queues since the previous collapse. This restores the "12.5 % of the queue capacity" amortization of the 2018 SegmentSmack fixes (CVE-2018-5390), using the same unit as the skrcvbuf limit, so that peers sending small (bloated) segments are not penalized.

The credit is the net growth of skrmemalloc in tcpqueuercv() and tcpdataqueueofo(), so that:

- Coalescing a segment into the tailroom of the previous skb charges no memory, and earns no credit. - An out-of-order segment replacing or covering queued skbs only earns the memory it adds. - Duplicates earn nothing. - Data moved from the out-of-order queue to the receive queue (tcpofoqueue()) is not credited twice.

In-order data is credited too, so that a receive queue filled by bloated in-order segments can still be collapsed when a hole appears.

In-order segments are rate limited as well: a peer could otherwise send small in-order segments that each trigger a collapse freeing a single skb, enough to queue the segment, while the out-of-order queue holds many skbs that can not be collapsed.

The credit is tracked in a new u32 tp->rcvcollapsecredit, placed in a hole of the tcpsockwriterx group: no other field moves, and tcpsock size is unchanged. tcpqueuercv() now samples skrmemalloc, and writes the credit until it saturates at skrcvbuf, so that the fast path stops writing it after a full buffer of new memory. Saturating at the goal would not work: skrcvbuf, and the goal with it, can grow later (for instance in tcpclampwindow(), just before the goal is checked), and a socket over its limit can not earn more credit until the application reads.

When collapsing is not allowed, tcpprunequeue() goes directly to tcppruneofoqueue(), which is cheap in the cases above.

A regular flow can see a difference when it goes over its limit before 1/8 of skrcvbuf of new memory was queued since the previous collapse: out-of-order skbs can be pruned (even for an in-order segment filling a hole), and an in-order segment that still does not fit is dropped, with a zero window advertised, where a collapse might have made room.

Affected Software

5 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.2.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7
debian/linux*
debian/linux*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via OSV·09:20 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

What conditions make a socket susceptible to repeated queue-processing work?

The socket must be over its receive-buffer limit while sk_rcvbuf cannot grow. The issue can occur when an application is not reading and the receive queue alone is over the limit, or when out-of-order traffic keeps the socket in a state where little or no memory is freed.

2

What does an attacker need to do to sustain the condition?

A peer able to send TCP segments to the affected socket can repeatedly send segments that land at the end of the out-of-order queue, or arrange for a small amount of queue space to be freed and immediately refilled. In some cases, the segment is dropped while the queues remain unchanged, allowing the peer to repeat the attempt indefinitely.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203