# CVE-2026-139704: gfs2: Fix journaled truncate range end offset

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-30T13:37:12.289Z
- Modified: 2026-11-30T14:20:00.647Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4e56a6411fbce6f859566e17298114c2434391a4 before 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1; from 4e56a6411fbce6f859566e17298114c2434391a4 before e6ea1eacb3988d2c4b90412badddeacfeee0c318; from 4e56a6411fbce6f859566e17298114c2434391a4 before 282c82534c0e9e113e5f7c41bda47c1ede721e4a; from 4e56a6411fbce6f859566e17298114c2434391a4 before f71ffad8d4e3468bb09f3039d38b53f8018decaa; from 4e56a6411fbce6f859566e17298114c2434391a4 before 8e76c9b7d07ba843fc4b5f129f173696efb2d07d; from 4e56a6411fbce6f859566e17298114c2434391a4 before cea217b9001415115dff5c54a882796b3d4486c6; from 4e56a6411fbce6f859566e17298114c2434391a4 before e33759a1f4f50a2acd609acff81c0e855df111ba; from 4e56a6411fbce6f859566e17298114c2434391a4 before a52652efd8f985397e87669f505af83f06e335cf; 4.16 (not affected: before 4.16; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/1bf88a382dc8a06ca3bc7b7849d7045e618e41c1>
- <https://git.kernel.org/stable/c/e6ea1eacb3988d2c4b90412badddeacfeee0c318>
- <https://git.kernel.org/stable/c/282c82534c0e9e113e5f7c41bda47c1ede721e4a>
- <https://git.kernel.org/stable/c/f71ffad8d4e3468bb09f3039d38b53f8018decaa>
- <https://git.kernel.org/stable/c/8e76c9b7d07ba843fc4b5f129f173696efb2d07d>
- <https://git.kernel.org/stable/c/cea217b9001415115dff5c54a882796b3d4486c6>
- <https://git.kernel.org/stable/c/e33759a1f4f50a2acd609acff81c0e855df111ba>
- <https://git.kernel.org/stable/c/a52652efd8f985397e87669f505af83f06e335cf>

## Sources

- CVE List: [CVE-2026-139704](https://www.cve.org/CVERecord?id=CVE-2026-139704), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139704](https://nvd.nist.gov/vuln/detail/CVE-2026-139704), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139704 · Whole record: https://cve.day/CVE-2026-139704.json · Rebuilt by cve.day 2026-11-30T14:33:38.069Z
