PT-2026-167010
CVE-2026-143152
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
tcp: do not coalesce segments after FIN
A FIN consumes a sequence number. If another FIN segment is coalesced
into an skb that already carries FIN, end seq advances to account for
the additional FIN, but tcp flags still contains only one FIN bit.
When the preceding gap is filled and tcp ofo queue() processes the
coalesced skb, rcv nxt advances to the skb's end seq. When the receive
path consumes all data in the skb, copied seq advances by the data
length and one sequence number for FIN. If three or more FIN segments
have been coalesced into one skb, tcp inq() can still return a positive
value after the receive queue becomes empty and the SOCK DONE adjustment
is applied.
TCP ZEROCOPY RECEIVE is another consumer affected by this state.
tcp zerocopy receive() takes its length from tcp inq() and follows
skb->next without checking for the end of the receive queue.
Software kTLS receive is one consumer affected by this state. When
strp->copy mode is false, tls strp msg consume() calls the TCP helper
tcp read done() to consume the current TLS record. In the reproducer,
tcp read done() consumed the record data and one FIN before freeing the
receive skb.
When kTLS looked for the next record, tcp inq() reported at least
TLS HEADER SIZE bytes even though the receive queue was empty.
tcp recv skb() returned NULL, so tls strp load anchor with queue() hit
WARN ON ONCE() and returned without updating the anchor.
Since tcp inq() had reported at least TLS HEADER SIZE,
tls strp read sock() proceeded to tls strp check queue ok().
skb shinfo(strp->anchor)->frag list still pointed to the freed receive
skb. tls strp check queue ok() then read TCP SKB CB(first)->seq through
the stale pointer, causing a use-after-free.
The reproducer followed this call path:
tls rx rec done()
tls strp msg consume()
tcp read done() // frees the receive skb
tls strp check rcv()
tls strp read sock()
tls strp load anchor with queue() // returns after WARN ON ONCE()
tcp recv skb() == NULL
tls strp check queue ok()
TCP SKB CB(first)->seq // reads the freed receive skb
KASAN reported:
BUG: KASAN: slab-use-after-free in tls strp check queue ok.isra.0+0x5f/0x100
Read of size 4 at addr ffff888103169ca8 by task ktls-server/71
...
Call Trace:
...
tls strp check queue ok.isra.0+0x5f/0x100
tls strp check rcv+0x2a9/0x400
...
tls sw recvmsg+0x3ce/0xa10
...
sock recvmsg+0xea/0x100
sys recvfrom+0x142/0x1f0
...
x64 sys recvfrom+0x76/0x90
do syscall 64+0xdd/0x4a0
entry SYSCALL 64 after hwframe+0x77/0x7f
...
...
Freed by task 71:
...
napi skb cache put+0x24/0xf0
skb attempt defer free+0x183/0x3b0
tcp read done+0x2d4/0x340
tls strp msg consume+0x45/0x80
tls sw recvmsg+0x3c4/0xa10
...
In tcp try coalesce(), skip coalescing when the destination skb already
carries FIN. tcp add backlog() calls skb try coalesce() directly instead
of using this helper, so add the same check there. Since both paths check
only the destination skb, a final segment carrying data and FIN can still
be coalesced into an skb without FIN when the other coalescing checks pass.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾