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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:37:12.289Z
- **Modified:** 2026-11-30T14:20:00.647Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker who can trigger a hole punch on a gfs2 journaled file in the Linux kernel can cause an inverted truncate range that crashes the system via a kernel BUG.

## Who should check

- Anyone running Linux \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< e6ea1eacb3988d2c4b90412badddeacfeee0c318; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 282c82534c0e9e113e5f7c41bda47c1ede721e4a; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< f71ffad8d4e3468bb09f3039d38b53f8018decaa; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 8e76c9b7d07ba843fc4b5f129f173696efb2d07d; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< cea217b9001415115dff5c54a882796b3d4486c6; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< e33759a1f4f50a2acd609acff81c0e855df111ba; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< a52652efd8f985397e87669f505af83f06e335cf
- Anyone running Linux 4.16

## 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 and fixed versions

- Linux: \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< e6ea1eacb3988d2c4b90412badddeacfeee0c318; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 282c82534c0e9e113e5f7c41bda47c1ede721e4a; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< f71ffad8d4e3468bb09f3039d38b53f8018decaa; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 8e76c9b7d07ba843fc4b5f129f173696efb2d07d; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< cea217b9001415115dff5c54a882796b3d4486c6; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< e33759a1f4f50a2acd609acff81c0e855df111ba; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< a52652efd8f985397e87669f505af83f06e335cf (cvelist)
- Linux: 4.16 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139704. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139704.md
Affected: Linux >= 4e56a6411fbce6f859566e17298114c2434391a4, < 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1; >= 4e56a6411fbce6f859566e17298114c2434391a4, < e6ea1eacb3988d2c4b90412badddeacfeee0c318; >= 4e56a6411fbce6f859566e17298114c2434391a4, < 282c82534c0e9e113e5f7c41bda47c1ede721e4a; >= 4e56a6411fbce6f859566e1…
Fixed in: Linux 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1, Linux 282c82534c0e9e113e5f7c41bda47c1ede721e4a, Linux 8e76c9b7d07ba843fc4b5f129f173696efb2d07d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139704 being exploited?

There is no confirmed exploitation: CVE-2026-139704 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139704?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139704?

Linux \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< e6ea1eacb3988d2c4b90412badddeacfeee0c318; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 282c82534c0e9e113e5f7c41bda47c1ede721e4a; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< f71ffad8d4e3468bb09f3039d38b53f8018decaa; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< 8e76c9b7d07ba843fc4b5f129f173696efb2d07d; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< cea217b9001415115dff5c54a882796b3d4486c6; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< e33759a1f4f50a2acd609acff81c0e855df111ba; \>= 4e56a6411fbce6f859566e17298114c2434391a4, \< a52652efd8f985397e87669f505af83f06e335cf; Linux 4.16.

### Is there a fix for CVE-2026-139704?

Yes. Fixed in Linux 1bf88a382dc8a06ca3bc7b7849d7045e618e41c1, Linux 282c82534c0e9e113e5f7c41bda47c1ede721e4a, Linux 8e76c9b7d07ba843fc4b5f129f173696efb2d07d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139704?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139704>

HTML: <https://flawdb.com/CVE-2026-139704> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139704>
