В ядре Linux устранена следующая уязвимость:
vhost: возьмите ссылку на задачу в структуре vhost_task.
vhost_task_create() создает задачу и сохраняет ссылку на нее. Task_struct. Эта задача может завершиться раньше по сигналу и ее Task_struct.
будет выпущен.
Ожидающий vhost_task_wake() затем попытается разбудить задачу и
получить доступ к Task_struct, которой больше нет. Получите ссылку на Task_struct при создании потока и
отпустите ссылку, одновременно удаляя саму структуру vhost_task. Если задача завершается раньше по сигналу, то vhost_task_wake() будет
по-прежнему получать доступ к действительной Task_struct.
Пробуждение безопасно и будет пропущено. в этом случае.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: vhost: Take a reference on the task in struct vhost_task. vhost_task_create() creates a task and keeps a reference to its task_struct. That task may exit early via a signal and its task_struct will be released. A pending vhost_task_wake() will then attempt to wake the task and access a task_struct which is no longer there. Acquire a reference on the task_struct while creating the thread and release the reference while the struct vhost_task itself is removed. If the task exits early due to a signal, then the vhost_task_wake() will still access a valid task_struct. The wake is safe and will be skipped in this case.
Характеристики атаки
Последствия
Строка CVSS v3.1