В ядре Linux была устранена следующая уязвимость: xfs: исправлена временная утечка курсора в пути In xfs_btree_lshift и xfs_btree_rshift, когда XFS_IS_CORRUPT обнаруживает неверный результат firstrec/lastrec после того, как xfs_btree_dup_cursor успешно выделил временный курсор, путь ошибки переходит в error0, который возвращается без освобождения tcur. Это приводит к утечке памяти курсора, ссылки xfs_group и ссылок на буфер каждого уровня, удерживаемых дублированным курсором. Вместо этого перейдите к error1, который вызывает xfs_btree_del_cursor(tcur, XFS_BTREE_ERROR), чтобы правильно освободить все ресурсы.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: xfs: fix temporary cursor leak in btree shift corruption paths In xfs_btree_lshift and xfs_btree_rshift, when XFS_IS_CORRUPT detects an invalid firstrec/lastrec result after xfs_btree_dup_cursor has successfully allocated a temporary cursor, the error path jumps to error0 which returns without freeing tcur. This leaks the cursor memory, the xfs_group reference, and the per-level buffer references held by the duplicated cursor. Jump to error1 instead, which calls xfs_btree_del_cursor(tcur, XFS_BTREE_ERROR) to properly release all resources.