CVE-2026-138977

Not scored yetLast modified Nov 30, 2026

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").

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 4ea907108a5ca800e91708f0dbbe01bc95f8f5af, < 5b3da0a784f8f515c75a534b5878b563a57a1eb0; >= 4ea907108a5ca800e91708f0dbbe01bc95f8f5af, < 4c72635f913850512d5fa74bf3eb7db3670398cf
LinuxLinux6.19

References

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138978In the Linux kernel, the following vulnerability has been resolved: regulator: core: Fix coupled regulators reference leak on removal of_pCVE-2026-138979In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: ptdump: Check the page tables aren't freed when accessing CVE-2026-138988.8Use after free in Cast Receiver in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to execute arbitrary code inside a sandboxCVE-2026-138980In the Linux kernel, the following vulnerability has been resolved: clk: mvebu: ap-cpu-clk: Assign .num before accessing .hws Commit f316cCVE-2026-138981In the Linux kernel, the following vulnerability has been resolved: ASoC: rt712-sdca-dmic: fix drvdata type in the gain controls rt712_sdcCVE-2026-138982In the Linux kernel, the following vulnerability has been resolved: ASoC: Intel: atom: Fix platform device leak on probe failure sst_acpi_CVE-2026-138983In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix deadlock between nilfs_evict_inode() and find_inode() SyzbCVE-2026-138984In the Linux kernel, the following vulnerability has been resolved: mfd: da903x: Cancel IRQ work during teardown The IRQ handler disables CVE-2026-138985In the Linux kernel, the following vulnerability has been resolved: ASoC: fsl_xcvr: free IRQ before canceling reset work irq0_isr() scheduCVE-2026-138986In the Linux kernel, the following vulnerability has been resolved: media: atmel-isi: release unregistered video device on remove atmel_isCVE-2026-138987In the Linux kernel, the following vulnerability has been resolved: media: go7007: unregister the I2C adapter on USB probe failure USB proCVE-2026-138988In the Linux kernel, the following vulnerability has been resolved: media: marvell: manage the MMP camera clock provider mmpcam_probe() re
CVE-2026-138977: Unscored | Vulnix