ntfs: move attribute payload before shrinking its record
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0ab6dc1ac4601c8d79e5448a024daed6b0c5ef64, Kernel 7dc2c524608039d1b082a0087f7aa0751edd4ffb and Kernel 7.2.13.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =7.1, >=47503f989736d6c4c9f8bfca1c28d267473ccd4b <0ab6dc1ac4601c8d79e5448a024daed6b0c5ef64, >=47503f989736d6c4c9f8bfca1c28d267473ccd4b <7dc2c524608039d1b082a0087f7aa0751edd4ffb | 0ab6dc1ac4601c8d79e5448a024daed6b0c5ef64, 7dc2c524608039d1b082a0087f7aa0751edd4ffb |
| linux-kernel: Kernel | >=7.1.0 <7.2.13 | 7.2.13 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket