В ядре Linux устранена следующая уязвимость:
io_uring/waitid: очистить информацию ожидания перед копированием ее в пространство пользователя.
IORING_OP_WAITID сохраняет поля результатов в структуре io_waitid::info и
позже копирует их в siginfo пользовательского пространства. Путь подготовки инициализирует
аргументы запроса, но сама информация не инициализируется. Если операция ожидания завершается без сообщения о дочернем событии, общий
код ожидания может вернуться без записи wo_info.
В этом случае io_waitid_finish()
по-прежнему копирует iw->info в пространство пользователя, обнажая устаревшие байты из повторно используемого
хранилище команд io_kiocb. Очистите хранилище результатов во время подготовки, чтобы путь io_uring соответствовал пути
обычный системный вызов waitid, который использует структуру waitid_info, инициализируемую нулем.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: io_uring/waitid: clear waitid info before copying it to userspace IORING_OP_WAITID stores its result fields in struct io_waitid::info and later copies them to userspace siginfo. The prep path initializes the request arguments, but it does not initialize info itself. If the wait operation completes without reporting a child event, the common wait code can return without writing wo_info. In that case io_waitid_finish() still copies iw->info to userspace, exposing stale bytes from the reused io_kiocb command storage. Clear the result storage during prep so the io_uring path matches the regular waitid syscall, which uses a zero-initialized struct waitid_info.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.92
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.34
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |