Description
In the Linux kernel, the following vulnerability has been resolved: ntfs: include the final partial cluster in sync writes ntfs_attrlist_repack() synchronously writes the replacement attribute list before updating its mapping pairs and freeing the old run. With 512-byte clusters, a 544-byte list submits a 512-byte bio, but the write returns 544 and repack accepts it as complete. If the later buffered update does not reach disk, the replacement list lacks its final 32 bytes. __ntfs_inode_non_resident_attr_pwrite() converts attr_len to clusters with ntfs_bytes_to_cluster(), which rounds down. Before repack, its synchronous callers used either cluster-aligned lengths or lengths smaller than one cluster, where max_t() selects one. Round attr_len up so repack writes the final partial cluster before publishing the new mapping pairs.
Affected products and versions
References
- git.kernel.org/stable/c/bc3c7da859f215868a42def63bfc605a982a3076
- git.kernel.org/stable/c/fa5489ebc8bc7c663311b0f35943fe7edd0dfe56
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.