В ядре Linux устранена следующая уязвимость:
blk-cgroup: исправлен UAF в __blkcg_rstat_flush()
Когда одновременно освобождаются несколько блоков в одном блоке,
может произойти использование после освобождения. Гонка происходит, когда один блок
__blkcg_rstat_flush() удаляет записи iostat другого blkg через
llist_del_all(). Второй блок видит пустой список и продолжает работу.
освободить себя, пока первый все еще перебирает свои записи.
Переместите сброс из __blkg_release() (обратный вызов RCU) в blkg_release().
(перед call_rcu). Это гарантирует, что льготный период RCU будет ожидать любого
раздел rcu_read_lock() параллельного сброса, который необходимо завершить перед освобождением.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: blk-cgroup: fix UAF in __blkcg_rstat_flush() When multiple blkgs in the same blkcg are released concurrently, a use-after-free can occur. The race happens when one blkg's __blkcg_rstat_flush() removes another blkg's iostat entries via llist_del_all(). The second blkg sees an empty list and proceeds to free itself while the first is still iterating over its entries. Move the flush from __blkg_release() (RCU callback) to blkg_release() (before call_rcu). This ensures the RCU grace period waits for any concurrent flush's rcu_read_lock() section to complete before freeing.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.3.9
|
6.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.4.1
|
6.6.144
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.95
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.38
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.1.3
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.4:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.4:rc7:*:*:*:*:*:*
|
— | — |