В ядре Linux устранена следующая уязвимость: btrfs: take commit root semaphore при итерации в mark_block_group_to_copy() mark_block_group_to_copy() итерирует корень commit с помощью skip_locking=true. Конкурирующий коммит транзакции может обменять и освободить корень коммита во время итерации, вызывая use-after-free при доступе к буферам протяженности. Исправьте это, используя path->need_commit_sem для защиты корневого поиска фиксации.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: btrfs: take commit root semaphore when iterating in mark_block_group_to_copy() mark_block_group_to_copy() iterates over the commit root with skip_locking=true. A concurrent transaction commit can swap and free the commit root during iteration, causing use-after-free when accessing extent buffers. Fix it by using path->need_commit_sem to protect the commit root search.