CVE-2026-100005: ntfs: include the final partial cluster in sync writes
In the Linux kernel, the following vulnerability has been resolved:
ntfs: include the final partial cluster in sync writes
ntfsattrlistrepack() 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.
ntfsinodenonresidentattrpwrite() converts attrlen to clusters with ntfsbytestocluster(), which rounds down. Before repack, its synchronous callers used either cluster-aligned lengths or lengths smaller than one cluster, where maxt() selects one.
Round attrlen up so repack writes the final partial cluster before publishing the new mapping pairs.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
Round attr_len up to include the final partial cluster before synchronously writing the replacement attribute list and publishing its new mapping pairs.
Event History
Frequently Asked Questions
What condition makes the incomplete write persist on disk?
The synchronous write can omit the final partial cluster, and the issue becomes persistent if the later buffered update does not reach disk. In that case, the replacement attribute list is missing its trailing bytes after its new mapping pairs have been published.
Which NTFS operation is involved?
The issue occurs during ntfs_attrlist_repack(), when it writes a replacement attribute list synchronously before updating mapping pairs and freeing the old run. The underlying write path converts the attribute-list length to clusters by rounding down.
Is the problem limited to fully cluster-aligned attribute lists?
No. Cluster-aligned lengths were already handled by prior synchronous callers, but a replacement list ending in a partial cluster can be truncated. The described example is a 544-byte list on a filesystem with 512-byte clusters, where only 512 bytes are submitted.