PT-2026-167098
CVE-2026-143240
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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 sk rcvbuf can
not grow, every incoming segment that needs memory goes through
tcp prune queue(), which runs tcp collapse ofo queue() and tcp collapse()
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:
-
The segment lands last in the out-of-order queue. Since commit b0e01253a764 ("tcp: refine tcp prune ofo queue() logic"), tcp prune ofo queue() drops nothing, the segment is dropped and the queues are unchanged. The peer can send it again forever.
-
The segment lands second to last: one skb is pruned, and one small segment fills that space again.
-
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.
-
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 sk rcvbuf 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 sk rcvbuf limit, so
that peers sending small (bloated) segments are not penalized.
The credit is the net growth of sk rmem alloc in tcp queue rcv() and
tcp data queue ofo(), 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 (tcp ofo queue()) 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->rcv collapse credit, placed in a
hole of the tcp sock write rx group: no other field moves, and tcp sock
size is unchanged. tcp queue rcv() now samples sk rmem alloc, and
writes the credit until it saturates at sk rcvbuf, so that the fast path
stops writing it after a full buffer of new memory. Saturating at the
goal would not work: sk rcvbuf, and the goal with it, can grow later
(for instance in tcp clamp window(), 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, tcp prune queue() goes directly to
tcp prune ofo queue(), which is cheap in the cases above.
A regular flow can see a difference when it goes over its limit before
1/8 of sk rcvbuf 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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾