# CVE-2026-138976: fuse: don't drop destination page cache on a zero byte copy reply

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-11-30 · Modified: 2026-11-30
- Aliases: DEBIAN-CVE-2026-138976, UBUNTU-CVE-2026-138976
- Record: https://cvemate.com/vulnerability/CVE-2026-138976 · JSON: https://cvemate.com/vulnerability/CVE-2026-138976/json

## Description

```text
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.
```

## Signals

- CVSS: none published
- EPSS: 0.211%, percentile 12.03%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 172)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.118-1 \| \< 7.3.4-1
- debian linux-6.12 (Debian): \< 6.12.118-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/d4dfc65120fe73189b2b42143ed6ee8b8e93283a>
- <https://git.kernel.org/stable/c/49b519ebdb95850f1e932aeb02ebd56e37fcf81f>
- <https://git.kernel.org/stable/c/0567d02ce0f555d2dd4834454e4fe81bd54a7764>
- <https://git.kernel.org/stable/c/dbc16179d423856a091cc63b88ec8b6ba4cde829>
- <https://git.kernel.org/stable/c/103a14a30f4e0c6da43016a52c2abc6e1f921e79>
- <https://git.kernel.org/stable/c/81f311ccfd77de3596e841af149dd06183a832ec>
- <https://git.kernel.org/stable/c/ac8661910ebee46daafa4be0b4da057fbe7d026b>
- <https://git.kernel.org/stable/c/f7585e1ce3418ec282485854b3d8d31c6a961e37>
- <https://security-tracker.debian.org/tracker/CVE-2026-138976>
- <https://ubuntu.com/security/CVE-2026-138976>
- <https://www.cve.org/CVERecord?id=CVE-2026-138976>

---

Data as of 2026-12-05T03:57:35.662Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
