Ad

CVE-2026-99524

NONE EPSS 0.20%
Обновлено 19 ноября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: sched_ext: Fix use-after-free локального узла reenq, оставленного на неактивном cpu A локальный DSQ reenq ставится в очередь на rq через заданные узлы и запускается из отложенной работы. Когда reenq запрашивается из отправки, работа представляет собой баланс обратного вызова, поставленного в очередь после завершения отправки. A cpu going down installs balance push early in its teardown, and queue_balance_callback() refuses new callbacks from then on. ops.dispatch() keeps running on that cpu until the rq goes offline after an RCU grace period, so a reenq it requests in that window may never run.

Обработка IMMED в dispatch_one () запрашивает один и тот же способ. Reenq, запрошенный в другом месте для процессора, который уже отключен, проходит через irq_work_queue_on (), который предупреждает, и его работа не запускается, пока процессор не вернется. В любом случае узел остается в списке RQ.

Когда планировщик освобождается, scx_sched_free_rcu_work () предупреждает и освобождает pcpu с узлом, все еще связанным, и список проходит снова, как только cpu возвращается. Локальный DSQ неактивного процессора содержит только те задачи, которые связаны с ним или перемещаются, поэтому reenq не имеет смысла. Игнорируйте повторы локального DSQ неактивного процессора.

Тест не запирается. Поток hotplug процессора, идущего вниз, работает на этом процессоре, и он отмечает неактивный процессор, прежде чем он установит push баланса. Диспетчер на компьютере выполняется до завершения, прежде чем этот поток может работать там, поэтому диспетчер, который видел активный компьютер, к тому времени поставил в очередь свой обратный звонок.

Запросы извне запускаются с пути пробуждения или через irq_work, что не влияет на баланс. Льготный период после неактивного процессора ожидает любого запрашивающего пользователя, который видел его активным, так что irq_work стоит в очереди, пока процессор находится в сети.

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

In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix use-after-free of a local reenq node left on an inactive cpu A local DSQ reenq is queued on the rq through a per-sched node and run from deferred work. When the reenq is requested from dispatch, the work is a balance callback queued once dispatch is done. A cpu going down installs balance push early in its teardown, and queue_balance_callback() refuses new callbacks from then on. ops.dispatch() keeps running on that cpu until the rq goes offline after an RCU grace period, so a reenq it requests in that window may never run. The IMMED handling in dispatch_one() requests one the same way. A reenq requested from elsewhere for a cpu that is already offline goes through irq_work_queue_on(), which warns, and its work doesn't run until the cpu comes back. Either way the node stays on the rq's list. When the scheduler is freed, scx_sched_free_rcu_work() warns and frees the pcpu with the node still linked, and the list is walked again once the cpu comes back. An inactive cpu's local DSQ holds only tasks that are bound to it or are being moved off, so the reenq is pointless. Ignore reenqs of an inactive cpu's local DSQ. The test is lockless. The hotplug thread of a cpu going down runs on that cpu, and it marks the cpu inactive before it installs balance push. A dispatch on the cpu runs to completion before that thread can run there, so a dispatch that saw the cpu active has queued its callback by then. Requests from outside dispatch run from the wakeup path or through irq_work, which balance push doesn't affect. The grace period after the cpu goes inactive waits for any requester that saw it active, so that irq_work is queued while the cpu is online.