Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139704

gfs2: Fix journaled truncate range end offset

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 4e56a6411fbce6f859566e17298114c2434391a4 to < 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1affected
  • 4e56a6411fbce6f859566e17298114c2434391a4 to < e6ea1eacb3988d2c4b90412badddeacfeee0c318affected
  • 4e56a6411fbce6f859566e17298114c2434391a4 to < 282c82534c0e9e113e5f7c41bda47c1ede721e4aaffected
  • 4e56a6411fbce6f859566e17298114c2434391a4 to < f71ffad8d4e3468bb09f3039d38b53f8018decaaaffected
  • 4e56a6411fbce6f859566e17298114c2434391a4 to < 8e76c9b7d07ba843fc4b5f129f173696efb2d07daffected
  • 4e56a6411fbce6f859566e17298114c2434391a4 to < cea217b9001415115dff5c54a882796b3d4486c6affected
  • 4e56a6411fbce6f859566e17298114c2434391a4 to < e33759a1f4f50a2acd609acff81c0e855df111baaffected
  • 4e56a6411fbce6f859566e17298114c2434391a4 to < a52652efd8f985397e87669f505af83f06e335cfaffected

Linux Linux

Default version status: affected

  • 4.16affected
  • 0 to < 4.16unaffected
  • 5.10.275 to ≤ 5.10.*unaffected
  • 5.15.226 to ≤ 5.15.*unaffected
  • 6.1.193 to ≤ 6.1.*unaffected
  • 6.6.163 to ≤ 6.6.*unaffected
  • 6.12.119 to ≤ 6.12.*unaffected
  • 6.18.65 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References