Ad

CVE-2026-93099

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

В ядре Linux устранена следующая уязвимость: fs/resctrl: Fix UAF из рабочих потоков при удалении доменов The mbm_handle_overflow() и cqm_handle_limbo() рабочие читают счетчики событий и могут спать при этом. Они планируются через delayed_work, встроенный в struct rdt_l3_mon_domain. Архитектура выделяет и освобождает эти домены от CPU hotplug callbacks под cpus_write_lock(), и работники приобретают cpus_read_lock(), чтобы сохранить домен живым через их доступ. use-after-free может возникать, когда рабочий блокируется в ожидании cpus_read_lock(), в то время как ядро hotplug содержит cpus_write_lock(): архитектура освобождает rdt_l3_mon_domain, который содержит рабочий work_struct.

Когда рабочий разблокирует, container_of () он выполняет на встроенном рабочем указателе разыграет освобожденную память. Отбросьте cpus_read_lock () от рабочих и вместо этого сливайте ожидающие и находящиеся в полете работы синхронно, прежде чем архитектура сможет освободить домен. Поскольку архитектура отключает домен под cpus_write_lock() после того, как он был отсоединен от списка RCU и истек льготный период, новые работы не могут быть запланированы.

Отмену нужно только переждать существующую работу. Отпустите rdtgroup_mutex во время CPU в автономном режиме вокруг cancel_delayed_work_sync (), чтобы рабочий, ожидающий мьютекса, мог завершить работу, прежде чем повторно закрепить работу на другом CPU. При отключении CPU архитектура может итерировать ресурсы в любом порядке.

Например, контрольный домен MBA может быть отключен до или после соответствующего мониторного домена L3. Убедитесь, что resctrl fs отменяет работу независимо от того, какой порядок архитектуры отключен от доменов.

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

In the Linux kernel, the following vulnerability has been resolved: fs/resctrl: Fix UAF from worker threads when domains are removed The mbm_handle_overflow() and cqm_handle_limbo() workers read event counters and may sleep while doing so. They are scheduled via delayed_work embedded in struct rdt_l3_mon_domain. Architecture allocates and frees these domains from CPU hotplug callbacks under cpus_write_lock(), and the workers acquire cpus_read_lock() to keep the domain alive across their access. A use-after-free can occur when a worker is blocked waiting for cpus_read_lock() while the hotplug core holds cpus_write_lock(): the architecture frees the rdt_l3_mon_domain that contains the worker's work_struct. When the worker unblocks, the container_of() it performs on the embedded work pointer dereferences freed memory. Drop cpus_read_lock() from the workers and instead drain pending and in-flight work synchronously before the architecture can free the domain. Since architecture offlines the domain under cpus_write_lock() after it has been unlinked from the RCU list and a grace period has elapsed, no new work can be scheduled. The cancel only needs to wait out existing work. Drop rdtgroup_mutex during CPU offline around cancel_delayed_work_sync() so that a worker waiting on the mutex can complete before re-pinning the work on a different CPU. When offlining a CPU the architecture may iterate over resources in any order. For example, the MBA control domain may be offlined before or after a corresponding L3 monitor domain. Ensure that resctrl fs cancels the workers no matter what order the architecture offlines the domains.