PT-2026-167150
CVE-2026-143292
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
tcp: wait for TIME WAIT teardown before freeing per-netns ehash
inet twsk kill() removes a TIME WAIT socket from the established hash
before it finishes using the ehash lock, hashinfo and bind tables, and
before it drops the death-row reference. A running timer can therefore
unhash its socket before inet twsk purge() reaches it. The purge cannot
synchronize with that timer, and tcp sk exit batch() can free the
private ehash and hashinfo while inet twsk kill() is still using them.
An unprivileged reproducer using user and network namespaces, a private
TCP ehash and a FIN WAIT2 timer triggers a KASAN slab-use-after-free in
inet twsk kill(). The allocation and free stacks point to
inet pernet hashinfo alloc() and inet pernet hashinfo free().
Wait for an RCU grace period after purging the whole batch, if one
netns in the batch uses a private ehash. TIME WAIT removal runs with
bottom halves disabled, so this also waits for removers that were
already invisible to the purge. Keep the wait under
tcp exit batch mutex, before freeing any private hashinfo.
The same window exists with the shared tcp hashinfo. There, the
hashinfo memory stays valid, but tcp sk exit batch() can decrement
tcp death row.tw refcount from 2 to 1 before inet twsk kill() drops its
own reference. This triggers the WARN ON ONCE() in tcp sk exit batch(),
then a refcount t "decrement hit 0" warning from inet twsk kill().
Adding a grace period for the shared case would be costly on busy
hosts. It is not needed: struct net is freed by a later cleanup net(),
after the synchronize rcu() in ops undo list(), so inet twsk kill()
can safely drop the last tw refcount reference itself.
Use refcount dec if one() and only warn if tw refcount is not 1
after a grace period.
[edumazet: only call synchronize net() if one netns in the batch uses a private ehash,
use refcount dec if one() to avoid a false WARN with the shared ehash]
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾