gfs2: Fix journaled truncate range end offset

Summary

CVECVE-2026-139704
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:20:00 UTC
Updated2026-11-30 14:20:00 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 4e56a6411fbce6f859566e17298114c2434391a4 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1 git Not specified
CNA Linux Linux affected 4e56a6411fbce6f859566e17298114c2434391a4 e6ea1eacb3988d2c4b90412badddeacfeee0c318 git Not specified
CNA Linux Linux affected 4e56a6411fbce6f859566e17298114c2434391a4 282c82534c0e9e113e5f7c41bda47c1ede721e4a git Not specified
CNA Linux Linux affected 4e56a6411fbce6f859566e17298114c2434391a4 f71ffad8d4e3468bb09f3039d38b53f8018decaa git Not specified
CNA Linux Linux affected 4e56a6411fbce6f859566e17298114c2434391a4 8e76c9b7d07ba843fc4b5f129f173696efb2d07d git Not specified
CNA Linux Linux affected 4e56a6411fbce6f859566e17298114c2434391a4 cea217b9001415115dff5c54a882796b3d4486c6 git Not specified
CNA Linux Linux affected 4e56a6411fbce6f859566e17298114c2434391a4 e33759a1f4f50a2acd609acff81c0e855df111ba git Not specified
CNA Linux Linux affected 4e56a6411fbce6f859566e17298114c2434391a4 a52652efd8f985397e87669f505af83f06e335cf git Not specified
CNA Linux Linux affected 4.16 Not specified
CNA Linux Linux unaffected 4.16 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/1bf88a382dc8a06ca3bc7b7849d7045e618e41c1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8e76c9b7d07ba843fc4b5f129f173696efb2d07d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/282c82534c0e9e113e5f7c41bda47c1ede721e4a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f71ffad8d4e3468bb09f3039d38b53f8018decaa 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a52652efd8f985397e87669f505af83f06e335cf 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e33759a1f4f50a2acd609acff81c0e855df111ba 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e6ea1eacb3988d2c4b90412badddeacfeee0c318 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/cea217b9001415115dff5c54a882796b3d4486c6 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report