{"id":"CVE-2026-100011","aliases":["CVE-2026-100011"],"related":[],"kind":"vulnerability","state":"published","title":"ntfs: avoid truncate and writeback deadlock","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: avoid truncate and writeback deadlock\n\nntfs_non_resident_attr_shrink() drops page-cache folios after freeing\nclusters and truncating the runlist. The VFS truncate path calls it with\nmrec_lock held. A folio writeback can need the same lock to resolve its\niomap mapping, so truncate can wait for writeback while writeback waits\nfor mrec_lock.\n\nA hung-task call stack:\n\n    truncate: mrec_lock -> truncate_inode_pages() -> folio lock/writeback\n\n    writeback: folio lock/writeback -> ntfs_write_iomap_begin() ->\n               mrec_lock\n\nntfs_setattr_size() already calls truncate_setsize() before\nntfs_truncate_vfs() acquires mrec_lock. Reuse that page-cache truncation\nin the VFS path and skip the duplicate truncation under mrec_lock. Keep\nthe cleanup for internal attribute callers, which do not call\ntruncate_setsize(). This avoids synchronously flushing the whole\ndiscarded tail while preserving page-cache correctness.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: avoid truncate and writeback deadlock\n\nntfs_non_resident_attr_shrink() drops page-cache folios after freeing\nclusters and truncating the runlist. The VFS truncate path calls it with\nmrec_lock held. A folio writeback can need the same lock to resolve its\niomap mapping, so truncate can wait for writeback while writeback waits\nfor mrec_lock.\n\nA hung-task call stack:\n\n    truncate: mrec_lock -> truncate_inode_pages() -> folio lock/writeback\n\n    writeback: folio lock/writeback -> ntfs_write_iomap_begin() ->\n               mrec_lock\n\nntfs_setattr_size() already calls truncate_setsize() before\nntfs_truncate_vfs() acquires mrec_lock. Reuse that page-cache truncation\nin the VFS path and skip the duplicate truncation under mrec_lock. Keep\nthe cleanup for internal attribute callers, which do not call\ntruncate_setsize(). This avoids synchronously flushing the whole\ndiscarded tail while preserving page-cache correctness.","source":"cvelist"}],"published":"2026-11-30T13:23:03.624Z","modified":"2026-11-30T14:17:15.027Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4e646ecd44759e552b0b9ccd995f3f608daab414","fixed":"e24ee790c71ed74422a851dfb5962098d1d705c6","status":"affected"},{"type":"git","introduced":"4e646ecd44759e552b0b9ccd995f3f608daab414","fixed":"fca746064d56329cd81b4f2b1961a3b928c3fe5a","status":"affected"},{"type":"git","version":"ed0d2e33fab516f45901ba0caf6f5460b15cec6c","status":"affected"},{"type":"semver","introduced":"7.1.8","fixed":"7.2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.2","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e24ee790c71ed74422a851dfb5962098d1d705c6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fca746064d56329cd81b4f2b1961a3b928c3fe5a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100011","url":"https://www.cve.org/CVERecord?id=CVE-2026-100011","licence":"CVE Terms of Use","modified":"2026-11-30T13:23:03.624Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100011","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100011","licence":"Public domain","modified":"2026-11-30T14:17:15.027Z"}],"updatedAt":"2026-11-30T14:32:21.687Z","epss":{"score":0.00198,"percentile":0.09982,"date":"2026-12-01T12:00:22.000Z"}}