{"id":"CVE-2026-138976","aliases":["CVE-2026-138976"],"related":[],"kind":"vulnerability","state":"published","title":"fuse: don't drop destination page cache on a zero byte copy reply","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfuse: don't drop destination page cache on a zero byte copy reply\n\n__fuse_copy_file_range() clears the destination page cache after the\nserver replies:\n\n\ttruncate_inode_pages_range(inode_out->i_mapping,\n\t\t\t\t   ALIGN_DOWN(pos_out, PAGE_SIZE),\n\t\t\t\t   ALIGN(pos_out + bytes_copied, PAGE_SIZE) - 1);\n\nA server may legitimately reply that it copied nothing, eg if the source\nfile turns out to be shorter than the size the kernel has cached for it.\n\nIf pos_out is 0 as well, the end of the range is ALIGN(0, PAGE_SIZE) - 1,\nwhich is -1. lend is a uoff_t and truncate_inode_pages_range() takes -1\nas its end of file sentinel, so rather than clearing nothing it drops\nevery folio in the destination mapping.\n\nThat is not only a cache drop. truncate_cleanup_folio() calls\nfolio_cancel_dirty(), and fuse_writeback_range() only wrote back\n[pos_out, pos_out + len - 1], so dirty data elsewhere in the destination\nfile is discarded without ever reaching the server.\n\nSkip the call when the server copied nothing, since there is nothing\nstale to clear in that case.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfuse: don't drop destination page cache on a zero byte copy reply\n\n__fuse_copy_file_range() clears the destination page cache after the\nserver replies:\n\n\ttruncate_inode_pages_range(inode_out->i_mapping,\n\t\t\t\t   ALIGN_DOWN(pos_out, PAGE_SIZE),\n\t\t\t\t   ALIGN(pos_out + bytes_copied, PAGE_SIZE) - 1);\n\nA server may legitimately reply that it copied nothing, eg if the source\nfile turns out to be shorter than the size the kernel has cached for it.\n\nIf pos_out is 0 as well, the end of the range is ALIGN(0, PAGE_SIZE) - 1,\nwhich is -1. lend is a uoff_t and truncate_inode_pages_range() takes -1\nas its end of file sentinel, so rather than clearing nothing it drops\nevery folio in the destination mapping.\n\nThat is not only a cache drop. truncate_cleanup_folio() calls\nfolio_cancel_dirty(), and fuse_writeback_range() only wrote back\n[pos_out, pos_out + len - 1], so dirty data elsewhere in the destination\nfile is discarded without ever reaching the server.\n\nSkip the call when the server copied nothing, since there is nothing\nstale to clear in that case.","source":"cvelist"}],"published":"2026-11-30T13:26:43.599Z","modified":"2026-11-30T14:17:59.680Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9b46418c40fe910e6537618f9932a8be78a3dd6c","fixed":"d4dfc65120fe73189b2b42143ed6ee8b8e93283a","status":"affected"},{"type":"git","introduced":"9b46418c40fe910e6537618f9932a8be78a3dd6c","fixed":"49b519ebdb95850f1e932aeb02ebd56e37fcf81f","status":"affected"},{"type":"git","introduced":"9b46418c40fe910e6537618f9932a8be78a3dd6c","fixed":"0567d02ce0f555d2dd4834454e4fe81bd54a7764","status":"affected"},{"type":"git","introduced":"9b46418c40fe910e6537618f9932a8be78a3dd6c","fixed":"dbc16179d423856a091cc63b88ec8b6ba4cde829","status":"affected"},{"type":"git","introduced":"9b46418c40fe910e6537618f9932a8be78a3dd6c","fixed":"103a14a30f4e0c6da43016a52c2abc6e1f921e79","status":"affected"},{"type":"git","introduced":"9b46418c40fe910e6537618f9932a8be78a3dd6c","fixed":"81f311ccfd77de3596e841af149dd06183a832ec","status":"affected"},{"type":"git","introduced":"9b46418c40fe910e6537618f9932a8be78a3dd6c","fixed":"ac8661910ebee46daafa4be0b4da057fbe7d026b","status":"affected"},{"type":"git","introduced":"9b46418c40fe910e6537618f9932a8be78a3dd6c","fixed":"f7585e1ce3418ec282485854b3d8d31c6a961e37","status":"affected"},{"type":"git","version":"d658c127fc419ad62ae6a40d0548eeb63d16294c","status":"affected"},{"type":"git","version":"6805031556e1e702c2eafa838d93651abe33824f","status":"affected"},{"type":"semver","introduced":"5.4.49","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.7.6","fixed":"5.8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","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/d4dfc65120fe73189b2b42143ed6ee8b8e93283a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/49b519ebdb95850f1e932aeb02ebd56e37fcf81f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0567d02ce0f555d2dd4834454e4fe81bd54a7764","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbc16179d423856a091cc63b88ec8b6ba4cde829","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/103a14a30f4e0c6da43016a52c2abc6e1f921e79","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81f311ccfd77de3596e841af149dd06183a832ec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac8661910ebee46daafa4be0b4da057fbe7d026b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f7585e1ce3418ec282485854b3d8d31c6a961e37","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138976","url":"https://www.cve.org/CVERecord?id=CVE-2026-138976","licence":"CVE Terms of Use","modified":"2026-11-30T13:26:43.599Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138976","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138976","licence":"Public domain","modified":"2026-11-30T14:17:59.680Z"}],"updatedAt":"2026-11-30T14:32:32.019Z","epss":{"score":0.00211,"percentile":0.12069,"date":"2026-12-01T12:00:22.000Z"}}