CVE-2026-138976
fuse: don't drop destination page cache on a zero byte copy reply
Check your servers for CVE-2026-138976
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138976 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9b46418c40fe910e6537618f9932a8be78a3dd6c, before d4dfc65120fe73189b2b42143ed6ee8b8e93283a affected from 9b46418c40fe910e6537618f9932a8be78a3dd6c, before 49b519ebdb95850f1e932aeb02ebd56e37fcf81f affected from 9b46418c40fe910e6537618f9932a8be78a3dd6c, before 0567d02ce0f555d2dd4834454e4fe81bd54a7764 affected from 9b46418c40fe910e6537618f9932a8be78a3dd6c, before dbc16179d423856a091cc63b88ec8b6ba4cde829 affected from 9b46418c40fe910e6537618f9932a8be78a3dd6c, before 103a14a30f4e0c6da43016a52c2abc6e1f921e79 affected from 9b46418c40fe910e6537618f9932a8be78a3dd6c, before 81f311ccfd77de3596e841af149dd06183a832ec affected from 9b46418c40fe910e6537618f9932a8be78a3dd6c, before ac8661910ebee46daafa4be0b4da057fbe7d026b affected from 9b46418c40fe910e6537618f9932a8be78a3dd6c, before f7585e1ce3418ec282485854b3d8d31c6a961e37 affected d658c127fc419ad62ae6a40d0548eeb63d16294c affected 6805031556e1e702c2eafa838d93651abe33824f affected from 5.4.49, before 5.5 affected from 5.7.6, before 5.8
Other versions: unaffected
|
| Linux |
affected 5.8 unaffected before 5.8 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138976 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138976
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-138976
trivy image --scanners vuln IMAGE | grep CVE-2026-138976
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d4dfc65120fe73189b2b42143ed6ee8b8e93283a git.kernel.org
- https://git.kernel.org/stable/c/49b519ebdb95850f1e932aeb02ebd56e37fcf81f git.kernel.org
- https://git.kernel.org/stable/c/0567d02ce0f555d2dd4834454e4fe81bd54a7764 git.kernel.org
- https://git.kernel.org/stable/c/dbc16179d423856a091cc63b88ec8b6ba4cde829 git.kernel.org
- https://git.kernel.org/stable/c/103a14a30f4e0c6da43016a52c2abc6e1f921e79 git.kernel.org
- https://git.kernel.org/stable/c/81f311ccfd77de3596e841af149dd06183a832ec git.kernel.org
- https://git.kernel.org/stable/c/ac8661910ebee46daafa4be0b4da057fbe7d026b git.kernel.org
- https://git.kernel.org/stable/c/f7585e1ce3418ec282485854b3d8d31c6a961e37 git.kernel.org
Source: the record CVE-2026-138976 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse