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.
INFO
Published Date :
Nov. 30, 2026, 2:20 p.m.
Last Modified :
Nov. 30, 2026, 2:20 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update the Linux kernel to the patched version.
- Ensure truncate_pagecache_range arguments are correct.
- Verify fallocate behavior on jdata files.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-139704.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-139704 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-139704
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-139704 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-139704 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 30, 2026
Action Type Old Value New Value Added 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. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139704.json">CVE-2026-139704</a> Added Reference https://git.kernel.org/stable/c/1bf88a382dc8a06ca3bc7b7849d7045e618e41c1 Added Reference https://git.kernel.org/stable/c/282c82534c0e9e113e5f7c41bda47c1ede721e4a Added Reference https://git.kernel.org/stable/c/8e76c9b7d07ba843fc4b5f129f173696efb2d07d Added Reference https://git.kernel.org/stable/c/a52652efd8f985397e87669f505af83f06e335cf Added Reference https://git.kernel.org/stable/c/cea217b9001415115dff5c54a882796b3d4486c6 Added Reference https://git.kernel.org/stable/c/e33759a1f4f50a2acd609acff81c0e855df111ba Added Reference https://git.kernel.org/stable/c/e6ea1eacb3988d2c4b90412badddeacfeee0c318 Added Reference https://git.kernel.org/stable/c/f71ffad8d4e3468bb09f3039d38b53f8018decaa