PT-2026-167008
CVE-2026-143150
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
tcp: fix request sock use-after-free during Fast Open accept()
Commit e3d95ad7da4f ("inet: avoid fastopen lock for regular accept()")
made inet csk accept() check tfo listener before taking fastopenq.lock
to avoid taking the lock for connections that did not use Fast Open.
reqsk fastopen remove() clears tfo listener while holding fastopenq.lock,
then reads req->sk. If inet csk accept() concurrently observes
tfo listener after it has been cleared, it skips fastopenq.lock and
drops the last reference to the request sock. This can free the
request sock while reqsk fastopen remove() is still using it.
If the freed memory is reused for a new request sock with req->sk ==
NULL, the reset path in reqsk fastopen remove() can append the new
request sock to the original listener's list of requests that caused an
RST. After the new request sock is freed, the next append writes through
the stale rskq rst tail into freed memory.
KASAN reported the following use-after-free when writing
fastopenq->rskq rst tail->dl next = req:
BUG: KASAN: slab-use-after-free in reqsk fastopen remove+0x142/0x210
Write of size 8 at addr ffff888108230688 by task swapper/5/0
...
Call Trace:
...
reqsk fastopen remove+0x142/0x210
tcp check req+0x96f/0xdd0
...
tcp rcv state process+0x19c/0x26b0
...
tcp v4 do rcv+0x16e/0x490
tcp v4 rcv+0x14a0/0x1af0
...
ip protocol deliver rcu+0x39/0x1e0
ip local deliver finish+0x124/0x1e0
ip local deliver+0xfb/0x1e0
...
To widen the race windows, mdelay(5) was added after newsk = req->sk,
mdelay(20) after the if (req) reqsk put(req) block, and mdelay(100)
after tcp rsk(req)->tfo listener = false. The KASAN report above was
reproduced with this kernel.
For the lockless check, use tcp sk(newsk)->syn fastopen child instead of
tfo listener, which reqsk fastopen remove() clears.
syn fastopen child is a field of the Fast Open child TCP socket
referenced by newsk, not of the request sock. It is set before the child
socket is added to the accept queue. The paths that call
reqsk fastopen remove() in response to a remote ACK or RST do not clear
this field.
inet csk accept() uses this field to take fastopenq.lock only for Fast
Open child sockets and rechecks tfo listener while holding the lock.
Connections that did not use Fast Open continue to avoid the lock.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾