Ad

CVE-2026-98087

MEDIUM CVSS 3.1: 5,5 EPSS 0.12%
Обновлено 17 ноября 2026
Linux
Параметр Значение
CVSS 5,5 (MEDIUM)
Уязвимые версии 5.11 — 7.3-rc2
Устранено в версии 6.18.53
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: sched/rt,dl: задачи Skip с отключением миграции при выборе push-кандидата Задача migrate_disable()'d RT не может быть перенесена в другой CPU, но планировщик по-прежнему сохраняет такую задачу в списке нажимаемого процессора (rq->rt.pushable_tasks) и по-прежнему отмечает перегруженный RT (rq->rt.overloaded 1). Таким образом, балансировщик RT продолжает рассматривать этот CPU как имеющий задачу отойти, и продолжает пытаться переместить задачу, но толчок никогда не может преуспеть. Когда голова прижата, push_rt_task() тоже не сдается.

Вместо этого он возвращается к нажатию rq->curr, используя пробку для CPU, как добавлено commit a7c81556ec4d («запланировано: Fix migrate_disable () против балансировки rt / dl»). CPU тратит десятки миллисекунд в этом цикле повторных попыток. Ядро изолировано для работы в режиме реального времени, но во время цикла почти половина его времени расходуется на толчки, которые не могут преуспеть.

Захват CPU, с включенным sched_switch и фиксацией 94894c9c477e («sched/rt: Skip в настоящее время выполняет CPU в rto_next_cpu()»), показывает, куда прошло время CPU. Две задачи SCHED_FIFO с одинаковым приоритетом разделили CPU, taskA migrate_disable()'d и поставленные в очередь, taskB как rq->curr. В одном 89 мс окне taskB получил только 52 мс CPU.

Остальные 37 мс пошли на стопперную нить. Планировщик продолжал пытаться нажать taskA, прижатую головку толкаемого списка, вместо этого вернулся к нажатию taskB и разбудил пробку 5204 раза. Каждый из этих толчков потерпел неудачу, и ни одна задача не была перемещена. taskA оставался управляемым и стоял в очереди все время и никогда не запускался.

Нажатие taskB терпит неудачу при повторной проверке. find_lock_lowest_rq() сбрасывает замок rq, чтобы взять целевой замок rq, а затем снова проверяет с помощью «задача ! pick_next_pushable_task(rq)». Выталкиваемая задача - taskB, но пик возвращает taskA, глава списка выталкиваний. taskB - rq->curr, а set_next_task_rt () удаляет выполняющуюся задачу из этого списка, поэтому taskB никогда не может быть головой. Проверка ожидает кандидата, взятого из проталкиваемого списка, но запасной вариант подталкивает rq->curr, которого никогда не было в этом списке.

So the check fails every time. .--> push-IPI arrives | | | v | pushable head = taskA -> pinned, cannot be pushed | | | v | so push taskB instead -> wake migration/N, a stop-class | | thread, so it preempts taskB | v | re-check compares taskB against the pushable head, | which is still taskA -> give up | | | v | nothing moved, taskA still queued, rq still overloaded | | '----------' repeats every ~17 us, 5204 times, for 89 ms The loop cannot stop itself. Каждый раунд оставляет очередь точно такой, какой она была, поэтому следующий push-IPI делает то же самое. В захвате он закончился только тогда, когда taskB пошел спать самостоятельно. taskA затем был выбран локально и покинул список.

CPU time per task in the window, from sched_switch: taskB 51.95 ms real work migration/N 37.18 ms nothing moved taskA 0.00 ms queued the whole time, never picked idle 0.01 ms Counts over the same window: 7667 push-IPIs handled on this CPU 17481 pick_next_pushable_task() returned taskA, still pinned 5204 find_lock_lowest_rq() gave up on the re-check 1 push that actually completed 0 migrations of taskA The CPU times and the window length come from the standard sched_switch tracepoint. Для этого исследования потребовались точки отслеживания, добавленные внутри балансировщика RT. Путь к само-IPI закрыт исправлением rto_next_cpu () выше, и эта часть работает.

Но беговая дорожка по-прежнему помечена перегруженной, потому что прикрепленная задача по-прежнему рекламируется как нажимаемая. Другие CPUs теперь отправляют push-IP во время собственной балансировки RT, и тот же цикл снова запускается. Прекращение пути self-IPI не остановило pinn --- усеченный ---

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: sched/rt,dl: Skip migrate-disabled tasks when picking a push candidate A migrate_disable()'d RT task cannot be moved to another CPU, but the scheduler still keeps such a task on that CPU's pushable list (rq->rt.pushable_tasks) and still marks the runqueue RT-overloaded (rq->rt.overloaded = 1). So the RT balancer keeps treating this CPU as having a task to move away, and keeps trying to move the task, but the push can never succeed. When the head is pinned, push_rt_task() does not give up either. It falls back to pushing rq->curr instead, using the per-CPU stopper, as added by commit a7c81556ec4d ("sched: Fix migrate_disable() vs rt/dl balancing"). The CPU spends tens of milliseconds in this retry loop. The core is isolated for real-time work, but during the loop nearly half of its time is consumed by pushes that cannot succeed. An ftrace capture of the affected CPU, with sched_switch enabled and commit 94894c9c477e ("sched/rt: Skip currently executing CPU in rto_next_cpu()") applied, shows where the CPU time went. Two SCHED_FIFO tasks at equal priority shared the CPU, taskA migrate_disable()'d and queued, taskB as rq->curr. In one 89 ms window, taskB got only 52 ms of CPU. The other 37 ms went to the stopper thread. The scheduler kept trying to push taskA, the pinned head of the pushable list, fell back to pushing taskB instead, and woke the stopper 5204 times. Every one of those pushes failed and no task was moved. taskA stayed runnable and queued the whole time, and never ran. Pushing taskB fails on a re-check. find_lock_lowest_rq() drops the rq lock to take the target rq lock, then checks again with "task != pick_next_pushable_task(rq)". The task being pushed is taskB, but the pick returns taskA, the head of the pushable list. taskB is rq->curr, and set_next_task_rt() removes the running task from that list, so taskB can never be the head. The check expects a candidate taken from the pushable list, but the fallback pushes rq->curr, which is never on that list. So the check fails every time. .--> push-IPI arrives | | | v | pushable head = taskA -> pinned, cannot be pushed | | | v | so push taskB instead -> wake migration/N, a stop-class | | thread, so it preempts taskB | v | re-check compares taskB against the pushable head, | which is still taskA -> give up | | | v | nothing moved, taskA still queued, rq still overloaded | | '----------' repeats every ~17 us, 5204 times, for 89 ms The loop cannot stop itself. Every round leaves the runqueue exactly as it was, so the next push-IPI does the same thing. In the capture it ended only when taskB went to sleep on its own. taskA was then picked locally and left the pushable list. CPU time per task in the window, from sched_switch: taskB 51.95 ms real work migration/N 37.18 ms nothing moved taskA 0.00 ms queued the whole time, never picked idle 0.01 ms Counts over the same window: 7667 push-IPIs handled on this CPU 17481 pick_next_pushable_task() returned taskA, still pinned 5204 find_lock_lowest_rq() gave up on the re-check 1 push that actually completed 0 migrations of taskA The CPU times and the window length come from the standard sched_switch tracepoint. The counts needed tracepoints added inside the RT balancer for this investigation. The self-IPI path is closed by the rto_next_cpu() fix above, and that part works. But the runqueue is still marked overloaded, because the pinned task is still advertised as pushable. Other CPUs now send the push-IPIs during their own RT balancing, and the same loop runs again. Closing the self-IPI path did not stop a pinn ---truncated---

Характеристики атаки

Способ атаки
Локальный
Нужен локальный доступ
Сложность
Низкая
Легко эксплуатировать
Нужны права
Низкие
Нужны базовые права
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Нет
Нет утечки данных
Целостность
Нет
Нет модификации данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1

Уязвимые продукты 4

Конфигурация От (включительно) До (исключительно)
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.11 6.18.53
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.11 7.2.7
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.11 7.3-rc2
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
— —