В ядре Linux устранена следующая уязвимость:
Fuse-uring: исправлено перемещение отмененной записи в список ent_in_userspace.
Fuse_uring_cancel() перемещает доступные записи (у них нет требований
прикреплено) в список ent_in_userspace. ent_list_request_expired()
проверяет первую запись в ent_in_userspace и разыменовывает
ent->fuse_req безоговорочно, что приведет к сбою при отмене записи
это было перенесено в этот список. Исправьте это, освободив запись и удаливqueue_refs непосредственно в
предохранитель_uring_cancel(). Это безопасно, поскольку cancel — это обработчик отмены.
сам по себе - после io_uring_cmd_done() отмены больше отправляться не будут
для этой команды, и демонтаж сериализуется с отменой через очередь->блокировка.
Поскольку теперь отмена уменьшает значение length_refs, метод Fuse_uring_abort() не должен выполняться.
более длинный шлюз funse_uring_abort_end_requests() для очереди_refs > 0, так как
отмененные записи, возможно, уже удалили length_refs, пока запросы
все еще стоял в очереди. Удалите шлюз, чтобы прерывание всегда сбрасывало запросы и останавливало выполнение.
очереди.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: fuse-uring: fix moving cancelled entry to ent_in_userspace list fuse_uring_cancel() moves entries that are available (these have no reqs attached) to the ent_in_userspace list. ent_list_request_expired() checks the first entry on ent_in_userspace and dereferences ent->fuse_req unconditionally, which will crash on a cancelled entry that was moved to this list. Fix this by freeing the entry and dropping queue_refs directly in fuse_uring_cancel(). This is safe because cancel is the cancel handler itself - after io_uring_cmd_done(), no more cancels will be dispatched for this command, and teardown serializes with cancel via queue->lock. Since cancel now decrements queue_refs, fuse_uring_abort() must no longer gate fuse_uring_abort_end_requests() on queue_refs > 0, as cancelled entries may have already dropped queue_refs while requests are still queued. Remove the gate so abort always flushes requests and stops queues.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.16
|
6.18.39
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.1.4
|