fuse: don't drop destination page cache on a zero byte copy reply
Summary
| CVE | CVE-2026-138976 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:17:59 UTC |
| Updated | 2026-11-30 14:17:59 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
fuse: don't drop destination page cache on a zero byte copy reply
__fuse_copy_file_range() clears the destination page cache after the
server replies:
truncate_inode_pages_range(inode_out->i_mapping,
ALIGN_DOWN(pos_out, PAGE_SIZE),
ALIGN(pos_out + bytes_copied, PAGE_SIZE) - 1);
A server may legitimately reply that it copied nothing, eg if the source
file turns out to be shorter than the size the kernel has cached for it.
If pos_out is 0 as well, the end of the range is ALIGN(0, PAGE_SIZE) - 1,
which is -1. lend is a uoff_t and truncate_inode_pages_range() takes -1
as its end of file sentinel, so rather than clearing nothing it drops
every folio in the destination mapping.
That is not only a cache drop. truncate_cleanup_folio() calls
folio_cancel_dirty(), and fuse_writeback_range() only wrote back
[pos_out, pos_out + len - 1], so dirty data elsewhere in the destination
file is discarded without ever reaching the server.
Skip the call when the server copied nothing, since there is nothing
stale to clear in that case. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 9b46418c40fe910e6537618f9932a8be78a3dd6c d4dfc65120fe73189b2b42143ed6ee8b8e93283a git |
Not specified |
| CNA |
Linux |
Linux |
affected 9b46418c40fe910e6537618f9932a8be78a3dd6c 49b519ebdb95850f1e932aeb02ebd56e37fcf81f git |
Not specified |
| CNA |
Linux |
Linux |
affected 9b46418c40fe910e6537618f9932a8be78a3dd6c 0567d02ce0f555d2dd4834454e4fe81bd54a7764 git |
Not specified |
| CNA |
Linux |
Linux |
affected 9b46418c40fe910e6537618f9932a8be78a3dd6c dbc16179d423856a091cc63b88ec8b6ba4cde829 git |
Not specified |
| CNA |
Linux |
Linux |
affected 9b46418c40fe910e6537618f9932a8be78a3dd6c 103a14a30f4e0c6da43016a52c2abc6e1f921e79 git |
Not specified |
| CNA |
Linux |
Linux |
affected 9b46418c40fe910e6537618f9932a8be78a3dd6c 81f311ccfd77de3596e841af149dd06183a832ec git |
Not specified |
| CNA |
Linux |
Linux |
affected 9b46418c40fe910e6537618f9932a8be78a3dd6c ac8661910ebee46daafa4be0b4da057fbe7d026b git |
Not specified |
| CNA |
Linux |
Linux |
affected 9b46418c40fe910e6537618f9932a8be78a3dd6c f7585e1ce3418ec282485854b3d8d31c6a961e37 git |
Not specified |
| CNA |
Linux |
Linux |
affected d658c127fc419ad62ae6a40d0548eeb63d16294c git |
Not specified |
| CNA |
Linux |
Linux |
affected 6805031556e1e702c2eafa838d93651abe33824f git |
Not specified |
| CNA |
Linux |
Linux |
affected 5.4.49 5.5 semver |
Not specified |
| CNA |
Linux |
Linux |
affected 5.7.6 5.8 semver |
Not specified |
| CNA |
Linux |
Linux |
affected 5.8 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.8 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.10.275 5.10.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15.226 5.15.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.118 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.63 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.4 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/ac8661910ebee46daafa4be0b4da057fbe7d026b |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/103a14a30f4e0c6da43016a52c2abc6e1f921e79 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/dbc16179d423856a091cc63b88ec8b6ba4cde829 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/49b519ebdb95850f1e932aeb02ebd56e37fcf81f |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/f7585e1ce3418ec282485854b3d8d31c6a961e37 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/d4dfc65120fe73189b2b42143ed6ee8b8e93283a |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/0567d02ce0f555d2dd4834454e4fe81bd54a7764 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/81f311ccfd77de3596e841af149dd06183a832ec |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.