В ядре Linux устранена следующая уязвимость:
blk-cgroup: исправлена утечка ссылок на диск в blkcg_maybe_throttle_current(). Добавьте отсутствующий put_disk() в путь ошибки в
blkcg_maybe_throttle_current(). При поиске blkcg, поиске blkg или
blkg_tryget() завершается неудачей, функция переходит к метке out, которая только
вызывает rcu_read_unlock(), но не освобождает полученную ссылку на диск
с помощью blkcg_schedule_throttle() через get_device().
Поскольку текущий->throttle_disk
перед поиском уже установлено значение NULL, blkcg_exit() не может освободить
эта ссылка также не приводит к тому, что диск никогда не освобождается. Восстановите эталонный выпуск, который присутствовал как blk_put_queue() в
исходный код, но был случайно удален во время преобразования из
request_queue в gendisk.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: blk-cgroup: fix disk reference leak in blkcg_maybe_throttle_current() Add the missing put_disk() on the error path in blkcg_maybe_throttle_current(). When blkcg lookup, blkg lookup, or blkg_tryget() fails, the function jumps to the out label which only calls rcu_read_unlock() but does not release the disk reference acquired by blkcg_schedule_throttle() via get_device(). Since current->throttle_disk is already set to NULL before the lookup, blkcg_exit() cannot release this reference either, causing the disk to never be freed. Restore the reference release that was present as blk_put_queue() in the original code but was inadvertently dropped during the conversion from request_queue to gendisk.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.3
|
6.6.141
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.91
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|