В ядре Linux устранена следующая уязвимость:
scsi: core: запускать очереди для всех устройств, отличных от SDEV_DEL, из scsi_run_host_queues
Пока хост SCSI находится в состоянии восстановления, scsi_mq_requeue_cmd() не будет выполняться.
установить список запроса для выполнения запрошенной команды в будущем. Ожидается, что вызов scsi_run_host_queues() отменит все SCSI.
устройства после очистки состояния восстановления. Однако scsi_run_host_queues() использует shhost_for_each_device(), который использует
scsi_device_get() и поэтому будет игнорировать устройства в частично удаленном
состояние типа SDEV_CANCEL.
Но эти устройства также могут быть поставлены в очередь
запросы, оставляя их запросы застрявшими из-за того, что их не кикнули, и вызывая
процесс удаления устройства зависает.
scsi_run_host_queues() необходимо запускать на большем количестве устройств, чем макрос
shhost_for_each_device() позволяет. Вместо использования слишком ограничивающего
scsi_device_get() проверяет состояние, игнорирует только устройства в состоянии SDEV_DEL или
когда невозможно получить ссылку. Попытайтесь запустить очереди для всех
другие устройства при вызове scsi_run_host_queues().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: scsi: core: Run queues for all non-SDEV_DEL devices from scsi_run_host_queues While a SCSI host is in a recovery state, scsi_mq_requeue_cmd() will not set the requeue list for a requeued command to be kicked in the future. The expectation is a call to scsi_run_host_queues() will kick all SCSI devices once the recovery state is cleared. However, scsi_run_host_queues() uses shost_for_each_device() which uses scsi_device_get() and so will ignore devices in a partially removed state like SDEV_CANCEL. But these devices may also have requeued requests, leaving their requests stuck from not being kicked and causing the removal process of the device to hang. scsi_run_host_queues() needs to run against more devices than the macro shost_for_each_device() allows. Instead of using the too limiting scsi_device_get() state checks, only ignore devices in SDEV_DEL state or when unable to acquire a reference. Attempt to run the queues for all other devices when scsi_run_host_queues() is called.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.5
|
6.6.143
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.93
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.35
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.12
|
|
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:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
|
— | — |