В ядре Linux была устранена следующая уязвимость: btrfs: fix transaction use-after-free in rail stripe insertion If выделение степени полоски RAID терпит неудачу, btrfs_insert_one_raid_extent() прерывает и завершает транзакцию перед возвращением -ENOMEM. btrfs_finish_one_ordered(), вызывающий производство через btrfs_insert_raid_extent(), по-прежнему владеет обработкой транзакции. Он обрабатывает ошибку, прерывая транзакцию, а затем достигает общего пути выхода, который снова завершает транзакцию. Преждевременный конец может освободить ручку и отказаться от ссылки на транзакцию.
Очистка транзакции может затем освободить транзакцию до того, как второй прерывание вызова вызовет обработчик и транзакцию, в результате чего use-after-free. Сохраните прерывание в месте отказа, но пусть общий путь выхода вызывающего абонента завершит транзакцию один раз, после того, как он закончит использовать оба объекта.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix transaction use-after-free in raid stripe insertion If allocation of a RAID stripe extent fails, btrfs_insert_one_raid_extent() aborts and ends the transaction before returning -ENOMEM. btrfs_finish_one_ordered(), the production caller through btrfs_insert_raid_extent(), still owns the transaction handle. It handles the error by aborting the transaction and then reaches the common exit path, which ends the transaction again. The premature end can free the handle and drop its transaction reference. Transaction cleanup can then free the transaction before the caller's second abort accesses the handle and transaction, resulting in use-after-free. Keep the abort at the failure site, but let the caller's common exit path end the transaction once, after it has finished using both objects.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.111
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.18.53
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
7.2.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
7.3-rc2
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.6.130
|
— |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
|
— | — |