В ядре Linux была устранена следующая уязвимость: ntfs: move attribute wealthood before shorting its record ntfs_new_attr_flags() изменяет размер записи атрибута нерезидента перед перемещением его имени и отображением пар на их смещения с более коротким заголовком при удалении сжатия или разреженного состояния. Уменьшение записи сначала перемещает следующий атрибут над хвостом старой записи. Последующий memmove(), следовательно, копирует байты из этого следующего атрибута вместо старых пар отображения.
Сжатие Re-enabling на пустом файле сохраняет эти байты как искаженный массив пар отображения, который ntfsck сообщает как отсутствующую или неверную длину выполнения. Переместите полезную нагрузку перед сокращением записи, сохраняя при этом существующий порядок resize-before-move при ее росте.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ntfs: move attribute payload before shrinking its record ntfs_new_attr_flags() resizes the non-resident attribute record before moving its name and mapping pairs to their shorter-header offsets when compression or sparse state is cleared. Shrinking the record first moves the following attribute over the tail of the old record. The subsequent memmove() therefore copies bytes from that following attribute instead of the old mapping pairs. Re-enabling compression on an empty file persists those bytes as a malformed mapping pairs array, which ntfsck reports as a missing or invalid run length. Move the payload before shrinking the record, while retaining the existing resize-before-move ordering when growing it.