PT-2026-162638
CVE-2026-100056
·
تاريخ النشر
2026-11-30
·
تاريخ التحديث
2026-11-30
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
ublk: keep a canceled FETCH round canceling until the server is gone
A cancel completes a fetched io command and sets io->cmd to NULL, but
the io still counts as ready. Only ubq->canceling stops ublk queue rq()
from using the NULL io->cmd. Two paths clear that flag too early:
partial FETCH round recovery, two queues
task A: FETCH tags 0-2 q0 ready: q0->canceling = false
task A exits: q0 task exits:
start cancel(): mark queues start cancel(): ub->canceling
tags 0-2: io->cmd = NULL is still set -> q0 not marked
task B: FETCH tag 3 q0: io->cmd = NULL
queue ready: canceling = false q1 ready
START DEV END USER RECOVERY
read -> ublk queue cmd(NULL) read on q0 -> ublk queue cmd(NULL)
A FETCH round runs from the open of /dev/ublkcN until
ublk reset ch dev() resets the queues. A canceled command can't be
fetched again in the same round. So the ready check only needs one
fact: did this round see a cancel? ub->canceling already records it:
ublk start cancel() sets it under cancel mutex before any command is
taken. It is only cleared too early, when all queues are ready.
Fix:
- clear ub->canceling only in ublk reset ch dev()
- when a queue gets ready, clear ubq->canceling only if ub->canceling is not set, and check it under cancel mutex
The check and the marking are ordered by cancel mutex:
check first: queue cleared -> start cancel() marks it again
-> command taken
cancel first: check sees ub->canceling -> queue stays canceling
While ub->canceling is set, no queue clears its flag. So the "all
queues marked" shortcut in ublk start cancel() is correct again.
UBLK F BATCH IO follows the same rule. It does not dispatch through
io->cmd, so it never hit the oops, but a round which lost a fetch
command is treated the same way: it has to start over.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾