PT-2026-167052
CVE-2026-143194
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
sched ext: Reject DSQ iterator kfuncs in tracing programs
bpf iter scx dsq next() and bpf iter scx dsq destroy() take the target
user DSQ's raw spinlock, but they are in scx kfunc ids any, which is
also registered for BPF PROG TYPE TRACING.
For an active root scheduler without ops.sub attach, the compatibility
path in scx prog sched() lets an unassociated tracing program resolve to
that scheduler. The tracing program can then call the iterator kfuncs
while the target DSQ lock is already held.
For example, a scheduler which mixes FIFO and priority-queue insertions
into a user DSQ triggers scx error() from scx dispatch enqueue() while
holding that DSQ's lock. scx claim exit() emits sched ext exit before
the lock is released:
scx dispatch enqueue()
raw spin lock(&dsq->lock)
scx error()
scx claim exit()
trace sched ext exit()
tracing BPF program
bpf iter scx dsq new(dsq id)
bpf for each(scx dsq, p, dsq id, 0)
bpf iter scx dsq next(it)
raw spin lock irqsave(&dsq->lock)
The tracing program recursively acquires the same raw spinlock and locks
up the CPU. Because the tracepoint runs before scx finish exit(),
disable irq work is not queued and the scheduler cannot enter its normal
disable path.
Reject the two iterator kfuncs from tracing programs at verification
time. The kfuncs remain available to SCX struct ops and syscall
programs. bpf iter scx dsq destroy() has no independent live
reproduction: its cursor only links into the DSQ after at least one
successful next(), which deadlocks in the same window first. It is
included for symmetry.
This extends the coverage of commit b07a7450f6ef ("sched ext: Reject
rq-lock-taking kfuncs in tracing programs") and commit 4c2e0751d5e6
("sched ext: Reject scx bpf destroy dsq() in tracing programs").
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾