{"api_version":"1","generated_at":"2026-11-30T19:45:59+00:00","cve":"CVE-2026-138976","urls":{"html":"https://cve.report/CVE-2026-138976","api":"https://cve.report/api/cve/CVE-2026-138976.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138976","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138976"},"summary":{"title":"fuse: don't drop destination page cache on a zero byte copy reply","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:59","updated_at":"2026-11-30 14:17:59"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/ac8661910ebee46daafa4be0b4da057fbe7d026b","name":"https://git.kernel.org/stable/c/ac8661910ebee46daafa4be0b4da057fbe7d026b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/103a14a30f4e0c6da43016a52c2abc6e1f921e79","name":"https://git.kernel.org/stable/c/103a14a30f4e0c6da43016a52c2abc6e1f921e79","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dbc16179d423856a091cc63b88ec8b6ba4cde829","name":"https://git.kernel.org/stable/c/dbc16179d423856a091cc63b88ec8b6ba4cde829","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/49b519ebdb95850f1e932aeb02ebd56e37fcf81f","name":"https://git.kernel.org/stable/c/49b519ebdb95850f1e932aeb02ebd56e37fcf81f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f7585e1ce3418ec282485854b3d8d31c6a961e37","name":"https://git.kernel.org/stable/c/f7585e1ce3418ec282485854b3d8d31c6a961e37","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d4dfc65120fe73189b2b42143ed6ee8b8e93283a","name":"https://git.kernel.org/stable/c/d4dfc65120fe73189b2b42143ed6ee8b8e93283a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0567d02ce0f555d2dd4834454e4fe81bd54a7764","name":"https://git.kernel.org/stable/c/0567d02ce0f555d2dd4834454e4fe81bd54a7764","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/81f311ccfd77de3596e841af149dd06183a832ec","name":"https://git.kernel.org/stable/c/81f311ccfd77de3596e841af149dd06183a832ec","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138976","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138976","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b46418c40fe910e6537618f9932a8be78a3dd6c d4dfc65120fe73189b2b42143ed6ee8b8e93283a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b46418c40fe910e6537618f9932a8be78a3dd6c 49b519ebdb95850f1e932aeb02ebd56e37fcf81f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b46418c40fe910e6537618f9932a8be78a3dd6c 0567d02ce0f555d2dd4834454e4fe81bd54a7764 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b46418c40fe910e6537618f9932a8be78a3dd6c dbc16179d423856a091cc63b88ec8b6ba4cde829 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b46418c40fe910e6537618f9932a8be78a3dd6c 103a14a30f4e0c6da43016a52c2abc6e1f921e79 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b46418c40fe910e6537618f9932a8be78a3dd6c 81f311ccfd77de3596e841af149dd06183a832ec git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b46418c40fe910e6537618f9932a8be78a3dd6c ac8661910ebee46daafa4be0b4da057fbe7d026b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b46418c40fe910e6537618f9932a8be78a3dd6c f7585e1ce3418ec282485854b3d8d31c6a961e37 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d658c127fc419ad62ae6a40d0548eeb63d16294c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6805031556e1e702c2eafa838d93651abe33824f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4.49 5.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.7.6 5.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/fuse/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"d4dfc65120fe73189b2b42143ed6ee8b8e93283a","status":"affected","version":"9b46418c40fe910e6537618f9932a8be78a3dd6c","versionType":"git"},{"lessThan":"49b519ebdb95850f1e932aeb02ebd56e37fcf81f","status":"affected","version":"9b46418c40fe910e6537618f9932a8be78a3dd6c","versionType":"git"},{"lessThan":"0567d02ce0f555d2dd4834454e4fe81bd54a7764","status":"affected","version":"9b46418c40fe910e6537618f9932a8be78a3dd6c","versionType":"git"},{"lessThan":"dbc16179d423856a091cc63b88ec8b6ba4cde829","status":"affected","version":"9b46418c40fe910e6537618f9932a8be78a3dd6c","versionType":"git"},{"lessThan":"103a14a30f4e0c6da43016a52c2abc6e1f921e79","status":"affected","version":"9b46418c40fe910e6537618f9932a8be78a3dd6c","versionType":"git"},{"lessThan":"81f311ccfd77de3596e841af149dd06183a832ec","status":"affected","version":"9b46418c40fe910e6537618f9932a8be78a3dd6c","versionType":"git"},{"lessThan":"ac8661910ebee46daafa4be0b4da057fbe7d026b","status":"affected","version":"9b46418c40fe910e6537618f9932a8be78a3dd6c","versionType":"git"},{"lessThan":"f7585e1ce3418ec282485854b3d8d31c6a961e37","status":"affected","version":"9b46418c40fe910e6537618f9932a8be78a3dd6c","versionType":"git"},{"status":"affected","version":"d658c127fc419ad62ae6a40d0548eeb63d16294c","versionType":"git"},{"status":"affected","version":"6805031556e1e702c2eafa838d93651abe33824f","versionType":"git"},{"lessThan":"5.5","status":"affected","version":"5.4.49","versionType":"semver"},{"lessThan":"5.8","status":"affected","version":"5.7.6","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/fuse/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.8"},{"lessThan":"5.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.49","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:26:43.599Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/d4dfc65120fe73189b2b42143ed6ee8b8e93283a"},{"url":"https://git.kernel.org/stable/c/49b519ebdb95850f1e932aeb02ebd56e37fcf81f"},{"url":"https://git.kernel.org/stable/c/0567d02ce0f555d2dd4834454e4fe81bd54a7764"},{"url":"https://git.kernel.org/stable/c/dbc16179d423856a091cc63b88ec8b6ba4cde829"},{"url":"https://git.kernel.org/stable/c/103a14a30f4e0c6da43016a52c2abc6e1f921e79"},{"url":"https://git.kernel.org/stable/c/81f311ccfd77de3596e841af149dd06183a832ec"},{"url":"https://git.kernel.org/stable/c/ac8661910ebee46daafa4be0b4da057fbe7d026b"},{"url":"https://git.kernel.org/stable/c/f7585e1ce3418ec282485854b3d8d31c6a961e37"}],"title":"fuse: don't drop destination page cache on a zero byte copy reply","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138976","datePublished":"2026-11-30T13:26:43.599Z","dateReserved":"2026-11-30T13:22:15.906Z","dateUpdated":"2026-11-30T13:26:43.599Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:59","lastModifiedDate":"2026-11-30 14:17:59","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138976","Ordinal":"1","Title":"fuse: don't drop destination page cache on a zero byte copy repl","CVE":"CVE-2026-138976","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138976","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"fuse: don't drop destination page cache on a zero byte copy repl"}]}}}