CVE-2026-139704
gfs2: Fix journaled truncate range end offset
Check your servers for CVE-2026-139704
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139704 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4e56a6411fbce6f859566e17298114c2434391a4, before 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1 affected from 4e56a6411fbce6f859566e17298114c2434391a4, before e6ea1eacb3988d2c4b90412badddeacfeee0c318 affected from 4e56a6411fbce6f859566e17298114c2434391a4, before 282c82534c0e9e113e5f7c41bda47c1ede721e4a affected from 4e56a6411fbce6f859566e17298114c2434391a4, before f71ffad8d4e3468bb09f3039d38b53f8018decaa affected from 4e56a6411fbce6f859566e17298114c2434391a4, before 8e76c9b7d07ba843fc4b5f129f173696efb2d07d affected from 4e56a6411fbce6f859566e17298114c2434391a4, before cea217b9001415115dff5c54a882796b3d4486c6 affected from 4e56a6411fbce6f859566e17298114c2434391a4, before e33759a1f4f50a2acd609acff81c0e855df111ba affected from 4e56a6411fbce6f859566e17298114c2434391a4, before a52652efd8f985397e87669f505af83f06e335cf
Other versions: unaffected
|
| Linux |
affected 4.16 unaffected before 4.16 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139704 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139704
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139704
trivy image --scanners vuln IMAGE | grep CVE-2026-139704
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/1bf88a382dc8a06ca3bc7b7849d7045e618e41c1 git.kernel.org
- https://git.kernel.org/stable/c/e6ea1eacb3988d2c4b90412badddeacfeee0c318 git.kernel.org
- https://git.kernel.org/stable/c/282c82534c0e9e113e5f7c41bda47c1ede721e4a git.kernel.org
- https://git.kernel.org/stable/c/f71ffad8d4e3468bb09f3039d38b53f8018decaa git.kernel.org
- https://git.kernel.org/stable/c/8e76c9b7d07ba843fc4b5f129f173696efb2d07d git.kernel.org
- https://git.kernel.org/stable/c/cea217b9001415115dff5c54a882796b3d4486c6 git.kernel.org
- https://git.kernel.org/stable/c/e33759a1f4f50a2acd609acff81c0e855df111ba git.kernel.org
- https://git.kernel.org/stable/c/a52652efd8f985397e87669f505af83f06e335cf git.kernel.org
Source: the record CVE-2026-139704 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse