CVE-2026-139704

Source
https://cve.org/CVERecord?id=CVE-2026-139704
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139704.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139704
Downstream
Published
2026-11-30T13:37:12Z
Modified
2026-11-30T15:02:30Z
Summary
gfs2: Fix journaled truncate range end offset
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139704.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4e56a6411fbce6f859566e17298114c2434391a4
Fixed
1bf88a382dc8a06ca3bc7b7849d7045e618e41c1
Fixed
e6ea1eacb3988d2c4b90412badddeacfeee0c318
Fixed
282c82534c0e9e113e5f7c41bda47c1ede721e4a
Fixed
f71ffad8d4e3468bb09f3039d38b53f8018decaa
Fixed
8e76c9b7d07ba843fc4b5f129f173696efb2d07d
Fixed
cea217b9001415115dff5c54a882796b3d4486c6
Fixed
e33759a1f4f50a2acd609acff81c0e855df111ba
Fixed
a52652efd8f985397e87669f505af83f06e335cf

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139704.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.16.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139704.json"