В ядре Linux устранена следующая уязвимость:
блок: отключить лифт int del_gendisk
Лифт используется только для запросов к файловой системе, которые останавливаются в
del_gendisk. Переместить отключение лифта и освобождение тегов планировщика
до конца del_gendisk вместо выполнения этой работы в disk_release и
blk_cleanup_queue, чтобы избежать использования после освобождения q->tag_set из
disk_release, так как tag_set в этот момент может быть неактивен.
Также переместите вызов blk_qos_exit, так как он зависит только от лифта.
выход и будет единственной причиной держать не совсем дешевую очередь
заморозить в disk_release.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: block: disable the elevator int del_gendisk The elevator is only used for file system requests, which are stopped in del_gendisk. Move disabling the elevator and freeing the scheduler tags to the end of del_gendisk instead of doing that work in disk_release and blk_cleanup_queue to avoid a use after free on q->tag_set from disk_release as the tag_set might not be alive at that point. Move the blk_qos_exit call as well, as it just depends on the elevator exit and would be the only reason to keep the not exactly cheap queue freeze in disk_release.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
5.18.8
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.19:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.19:rc3:*:*:*:*:*:*
|
— | — |