PT-2026-166992
CVE-2026-143134
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
netfilter: xt recent: do not call remove proc entry() under recent lock
recent proc net exit() removes the /proc/net/xt recent/ entries of
a dying network namespace while holding spin lock bh(&recent lock).
remove proc entry() may sleep: proc entry rundown() waits until every
task that is still inside the entry's file operations has left. A reader
of such an entry is counted in by proc reg read() before
recent seq start() takes recent lock. So if a read is in flight when the
namespace is torn down, cleanup net() sleeps in atomic context holding
the spinlock that the reader is spinning on, and neither side can ever
make progress.
An unprivileged user can trigger this from a user namespace by adding a
rule with the "recent" match and reading its proc file while the
namespace is being destroyed. As recent lock is global, every later
attempt to take it spins forever too: the spinning can spread to all
CPUs, and network namespace teardown stops system-wide.
BUG: sleeping function called from invalid context at
kernel/sched/completion.c:116
#3: (recent lock){+...}-{3:3}, at: recent net exit+0x2b/0x140
Workqueue: netns cleanup net
Call Trace:
proc entry rundown+0x185/0x1b0
remove proc entry+0x21a/0x520
recent net exit+0x7f/0x140
cleanup net+0x414/0x8f0
...
rcu: INFO: rcu preempt self-detected stall on CPU
Call Trace:
queued spin lock slowpath+0x313/0xc20
recent seq start+0x87/0x1b0
seq read iter+0x265/0x11e0
proc reg read+0x1ab/0x270
Fix by taking recent mutex instead of recent lock. According to
commit a0e889bb1bdc ("[NETFILTER]: recent match: fix "sleeping function
called from invalid context""), recent mutex is the lock to use here: it
protects recent net->tables and was introduced so that proc entries are
created and removed without recent lock held, because those calls may
sleep. hashlimit proc net exit() does the same for xt hashlimit.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾