fuse: zero the correct range on a short read reply

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

fuse: zero the correct range on a short read reply

When a read reply is shorter than the requested range, fuse_copy_folio() zeroes everything in the folio outside the copied bytes. However, for folios with block sizes smaller than the folio size, this can clear blocks outside the requested range which are uptodate, or dirty and have not yet been written back.

Move the zeroing logic into fuse_copy_folios(), since descs[i].length needs to be used, and clear only the tail of the requested range that the server did not send.

The range is also no longer cleared upfront in the non cs->skip_folio_copy case. This is fine since a failed copy leaves those blocks non-uptodate, so the uncopied bytes are never visible. This also matches the pre-existing behavior in the non-short-read case (a failed copy doesn't zero out the range in the folio). This lets the zeroing logic stay the same regardless of whether the folio copy is skipped or not.

ProductVersions
Linux Linuxa4c9ab1d4975746c14b34c7bb908869245a9dd4f to before 9797c6738718dadcf3d0fe8b303182add22a9ccc Affecteda4c9ab1d4975746c14b34c7bb908869245a9dd4f to before 9d9ccc96361973dd63a45069cb2b880b6c22132c Affecteda4c9ab1d4975746c14b34c7bb908869245a9dd4f to before d0a079b5b94bf5e10f1c00bd092eda0333782037 Affected
Linux Linux6.17 Affectedbefore 6.17 Not Affected6.18.66 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.