Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7dc2c524608039d1b082a0087f7aa0751edd4ffbaffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 0ab6dc1ac4601c8d79e5448a024daed6b0c5ef64affected0 to < 7.2.13affected
Linux Linux
Default version status: affected
7.2.13 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected