Ad

CVE-2026-90342

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

В ядре Linux устранена следующая уязвимость: bpf: Fix mmap_lock deadlock on arena lock failure Reported by the Sashiko AI review. arena_vm_fault() возвращает VM_FAULT_RETRY, когда не может взять arena->spinlock, но так и не взял mmap_lock. Путь ошибки предполагает, что обработчик VM_FAULT_RETRY уже уронил mmap_lock и повторно берет его на повторную попытку, поэтому mmap_lock берется дважды и может зайти в тупик: do_user_addr_fault () отказ handle_mm_fault (...); // вызывает arena_vm_fault (), если (неисправность & VM_FAULT_RETRY) повторит попытку; // повторно блокирует mmap_lock mmap_read_unlock(mm; Return VM_FAULT_SIGBUS вместо этого по двум причинам: 1. Мы могли бы оставить VM_FAULT_RETRY, но тогда нам пришлось бы сначала сбросить замок неисправности и закрыть повторную попытку, как это делает __folio_lock_or_retry(). 2.

Неудавшийся raw_res_spin_lock_irqsave() уже означает, что был обнаружен возможный тупик, поэтому повторная попытка просто снова попадает в тот же замок. Таким образом, возвращение VM_FAULT_RETRY здесь является излишним.

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

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix mmap_lock deadlock on arena lock failure Reported by the Sashiko AI review. arena_vm_fault() returns VM_FAULT_RETRY when it can't take arena->spinlock, but it never took mmap_lock. The fault path assumes a VM_FAULT_RETRY handler already dropped mmap_lock and re-takes it on the retry, so mmap_lock gets taken twice and can deadlock: do_user_addr_fault() { fault = handle_mm_fault(...); // calls arena_vm_fault() if (fault & VM_FAULT_RETRY) goto retry; // re-locks mmap_lock mmap_read_unlock(mm); } Return VM_FAULT_SIGBUS instead, for two reasons: 1. We could keep VM_FAULT_RETRY, but then we'd have to drop the fault lock first and cap the retry ourselves, the way __folio_lock_or_retry() does. 2. A failed raw_res_spin_lock_irqsave() already means a possible deadlock was detected, so retrying just hits the same lock again. So returning VM_FAULT_RETRY here is overkill.