CVE-2026-138977

fuse: don't shorten the folio descriptor at LLONG_MAX

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

fuse: don't shorten the folio descriptor at LLONG_MAX

fuse_send_readpages() and fuse_do_readfolio() both decrement the folio
descriptor length when handling the overflow case where a read would
exceed LLONG_MAX after incrementing the file position by the number of
bytes that need to be read in.

Shortening it is unnecessary (and for the virtio-fs paths, a bug), and
with fuse using iomap for handling reads, shortening it is buggy.

For fuse_send_readpages(), ap->descs[] is also what fuse_readpages_end()
reports back to iomap_finish_folio_read(). iomap accounted the full
length when the range was submitted, so the lengths reported on
completion have to add up to what was submitted. Reporting one byte less
leaves ifs->read_bytes_pending nonzero, folio_end_read() is never called,
and the folio stays locked.

This is currently reachable on fuseblk mounts configured with block
sizes smaller than the page size.

Fix this by leaving the descriptor length untouched. The reply will then
be one byte shorter than what the descriptor lengths add up to, and the
last byte will be zeroed in fuse_copy_folios().

This also fixes a bug in virtio-fs that existed before any iomap changes
were added to fuse. For virtio-fs, data there arrives by DMA rather than
through fuse_copy_folios(), so the only zeroing is in
virtio_fs_request_complete(), which compares the reply size against the
descriptor length. With the descriptor length shortened, the two are
equal and nothing gets zeroed, which means the unrequested byte is left
holding whatever was in the folio, when the folio is marked uptodate.
This is both in the fuse_do_readfolio() and fuse_send_readpages() paths.
This dates back to commit 2f1398291bf3 ("fuse: don't overflow LLONG_MAX
with end offset").

Analysis

AI-generated

Technical impact

In the Linux kernel, the FUSE subsystem incorrectly reduced the length of the folio descriptor during read operations that could exceed the maximum signed 64‑bit offset. This unnecessary decrement caused the last byte of a folio to remain unzeroed after a read, leaving stale or private data in memory and causing the folio to stay locked. The locked folio blocks further read operations, potentially degrading performance or causing a denial of service.

Affected Systems

All Linux kernel distributions that implement the FUSE subsystem, especially fuseblk mounts configured with block sizes smaller than a page, are affected. The bug is triggered when a read request would extend beyond the LLONG_MAX file‑offset limit after adding the requested byte count. It exists in kernels that have not applied the commit that removes the descriptor length decrement (see the provided git references).

Risk and Exploitability

The EPSS score is not available and the issue is not listed in CISA’s KEV catalog, but a local attacker who can access a vulnerable fuseblk mount can exploit the flaw. The attacker can cause the kernel to return portions of memory that were not intended to be read, leading to information disclosure, or force the kernel to lock folios and exhaust resources, leading to a denial of service. Exploitation requires a FUSE filesystem and configuration that triggers the overflow condition and does not rely on network connectivity or elevated privileges. While a numeric severity score is unavailable, the potential impact on confidentiality and availability warrants prompt mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a Linux kernel version that includes the commit correcting the descriptor length bug (e.g., kernel 5.15 or newer).
  • If a kernel upgrade is not immediately possible, configure fuseblk mounts to use a block size equal to the page size to avoid the overflow scenario.
  • For environments using virtio‑fs, rebuild or update the virtio‑fs module so that request completions properly zero unrequested bytes and match descriptor lengths.

Generated by OpenCVE AI on November 30, 2026 at 18:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-200
CWE-824
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fuse: don't shorten the folio descriptor at LLONG_MAX fuse_send_readpages() and fuse_do_readfolio() both decrement the folio descriptor length when handling the overflow case where a read would exceed LLONG_MAX after incrementing the file position by the number of bytes that need to be read in. Shortening it is unnecessary (and for the virtio-fs paths, a bug), and with fuse using iomap for handling reads, shortening it is buggy. For fuse_send_readpages(), ap->descs[] is also what fuse_readpages_end() reports back to iomap_finish_folio_read(). iomap accounted the full length when the range was submitted, so the lengths reported on completion have to add up to what was submitted. Reporting one byte less leaves ifs->read_bytes_pending nonzero, folio_end_read() is never called, and the folio stays locked. This is currently reachable on fuseblk mounts configured with block sizes smaller than the page size. Fix this by leaving the descriptor length untouched. The reply will then be one byte shorter than what the descriptor lengths add up to, and the last byte will be zeroed in fuse_copy_folios(). This also fixes a bug in virtio-fs that existed before any iomap changes were added to fuse. For virtio-fs, data there arrives by DMA rather than through fuse_copy_folios(), so the only zeroing is in virtio_fs_request_complete(), which compares the reply size against the descriptor length. With the descriptor length shortened, the two are equal and nothing gets zeroed, which means the unrequested byte is left holding whatever was in the folio, when the folio is marked uptodate. This is both in the fuse_do_readfolio() and fuse_send_readpages() paths. This dates back to commit 2f1398291bf3 ("fuse: don't overflow LLONG_MAX with end offset").
Title fuse: don't shorten the folio descriptor at LLONG_MAX
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-824

    Access of Uninitialized Pointer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:26 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM