CVE-2026-138976
Received Received - Intake

FUSE File Copy Zero Byte Cache Corruption

Vulnerability report for CVE-2026-138976, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-30

Last updated on: 2026-11-30

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-30
Last Modified
2026-11-30
Generated
2026-12-01
AI Q&A
2026-11-30
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a flaw in the FUSE (Filesystem in Userspace) implementation. When a server replies with a zero-byte copy operation, the kernel incorrectly clears the destination file's page cache. This happens because the end range calculation for truncate_inode_pages_range() becomes -1, causing it to drop all pages in the destination mapping instead of just the relevant ones. This can lead to loss of dirty data that was never synced to the server.

Detection Guidance

This vulnerability is specific to the Linux kernel's FUSE (Filesystem in Userspace) implementation. Detection requires checking the kernel version and FUSE-related processes. Use commands like 'uname -a' to check kernel version and 'lsmod | grep fuse' to verify FUSE module loading. If your kernel version is vulnerable, update it immediately.

Impact Analysis

If you use FUSE-based filesystems, this vulnerability could cause data loss. When a zero-byte copy reply occurs, dirty data in the destination file may be discarded without being written back to the server. This could result in corrupted or incomplete files if the system crashes or reboots before the data is properly saved.

Mitigation Strategies

Apply the latest kernel update from your Linux distribution to patch this vulnerability. If immediate updates are not possible, consider disabling FUSE or restricting its use until patched. Monitor vendor advisories for official fixes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138976. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...