В ядре Linux устранена следующая уязвимость: scsi: bsg: Fix TOCTOU В io_uring прохождение командной установки scsi_bsg_uring_cmd() читает bsg_uring_cmd из общего mmap'd SQE. Userspace может изменить поле после того, как мы проверим его и до того, как мы его используем. request_len - это острый случай: он может расти мимо sizeof(scmd->cmnd) после связанной проверки и переполнения scmd->cmnd в copy_from_user (). READ_ONCE () поля SQE, которые мы проверяем или используем для местных жителей перед использованием.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: scsi: bsg: Fix TOCTOU in io_uring passthrough command setup scsi_bsg_uring_cmd() reads bsg_uring_cmd from the shared mmap'd SQE. Userspace can change a field after we check it and before we use it. request_len is the sharp case: it can grow past sizeof(scmd->cmnd) after the bound check and overflow scmd->cmnd in copy_from_user(). READ_ONCE() the SQE fields we check or use into locals before use.
Характеристики атаки
Последствия
Строка CVSS v3.1