gfs2: Fix journaled truncate range end offset

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:

gfs2: Fix journaled truncate range end offset

The third argument to truncate_pagecache_range() is the inclusive end offset, but gfs2_journaled_truncate_range() passes the length of each chunk. A hole punch at an offset larger than its length therefore creates an inverted range.

Commit 86066914edff ("gfs2: Don't support fallocate on jdata files") disables fallocate for jdata files. Otherwise, the following bug could occur:

The MM truncation path then underflows the unsigned partial-folio length and passes an oversized range to folio_zero_range(), triggering a BUG. Pass the last byte of the chunk so page-cache invalidation covers the intended range.

ProductVersions
Linux Linux4e56a6411fbce6f859566e17298114c2434391a4 to before 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1 Affected4e56a6411fbce6f859566e17298114c2434391a4 to before e6ea1eacb3988d2c4b90412badddeacfeee0c318 Affected4e56a6411fbce6f859566e17298114c2434391a4 to before 282c82534c0e9e113e5f7c41bda47c1ede721e4a Affected4e56a6411fbce6f859566e17298114c2434391a4 to before f71ffad8d4e3468bb09f3039d38b53f8018decaa Affected4e56a6411fbce6f859566e17298114c2434391a4 to before 8e76c9b7d07ba843fc4b5f129f173696efb2d07d Affected4e56a6411fbce6f859566e17298114c2434391a4 to before cea217b9001415115dff5c54a882796b3d4486c6 Affected4e56a6411fbce6f859566e17298114c2434391a4 to before e33759a1f4f50a2acd609acff81c0e855df111ba Affected4e56a6411fbce6f859566e17298114c2434391a4 to before a52652efd8f985397e87669f505af83f06e335cf Affected
Linux Linux4.16 Affectedbefore 4.16 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 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.