{"id":"CVE-2026-139704","aliases":["CVE-2026-139704"],"related":[],"kind":"vulnerability","state":"published","title":"gfs2: Fix journaled truncate range end offset","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Fix journaled truncate range end offset\n\nThe third argument to truncate_pagecache_range() is the inclusive end\noffset, but gfs2_journaled_truncate_range() passes the length of each\nchunk. A hole punch at an offset larger than its length therefore\ncreates an inverted range.\n\nCommit 86066914edff (\"gfs2: Don't support fallocate on jdata files\")\ndisables fallocate for jdata files.  Otherwise, the following bug\ncould occur:\n\nThe MM truncation path then underflows the unsigned partial-folio\nlength and passes an oversized range to folio_zero_range(), triggering\na BUG. Pass the last byte of the chunk so page-cache invalidation\ncovers the intended range.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Fix journaled truncate range end offset\n\nThe third argument to truncate_pagecache_range() is the inclusive end\noffset, but gfs2_journaled_truncate_range() passes the length of each\nchunk. A hole punch at an offset larger than its length therefore\ncreates an inverted range.\n\nCommit 86066914edff (\"gfs2: Don't support fallocate on jdata files\")\ndisables fallocate for jdata files.  Otherwise, the following bug\ncould occur:\n\nThe MM truncation path then underflows the unsigned partial-folio\nlength and passes an oversized range to folio_zero_range(), triggering\na BUG. Pass the last byte of the chunk so page-cache invalidation\ncovers the intended range.","source":"cvelist"}],"published":"2026-11-30T13:37:12.289Z","modified":"2026-11-30T14:20:00.647Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4e56a6411fbce6f859566e17298114c2434391a4","fixed":"1bf88a382dc8a06ca3bc7b7849d7045e618e41c1","status":"affected"},{"type":"git","introduced":"4e56a6411fbce6f859566e17298114c2434391a4","fixed":"e6ea1eacb3988d2c4b90412badddeacfeee0c318","status":"affected"},{"type":"git","introduced":"4e56a6411fbce6f859566e17298114c2434391a4","fixed":"282c82534c0e9e113e5f7c41bda47c1ede721e4a","status":"affected"},{"type":"git","introduced":"4e56a6411fbce6f859566e17298114c2434391a4","fixed":"f71ffad8d4e3468bb09f3039d38b53f8018decaa","status":"affected"},{"type":"git","introduced":"4e56a6411fbce6f859566e17298114c2434391a4","fixed":"8e76c9b7d07ba843fc4b5f129f173696efb2d07d","status":"affected"},{"type":"git","introduced":"4e56a6411fbce6f859566e17298114c2434391a4","fixed":"cea217b9001415115dff5c54a882796b3d4486c6","status":"affected"},{"type":"git","introduced":"4e56a6411fbce6f859566e17298114c2434391a4","fixed":"e33759a1f4f50a2acd609acff81c0e855df111ba","status":"affected"},{"type":"git","introduced":"4e56a6411fbce6f859566e17298114c2434391a4","fixed":"a52652efd8f985397e87669f505af83f06e335cf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1bf88a382dc8a06ca3bc7b7849d7045e618e41c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e6ea1eacb3988d2c4b90412badddeacfeee0c318","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/282c82534c0e9e113e5f7c41bda47c1ede721e4a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f71ffad8d4e3468bb09f3039d38b53f8018decaa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e76c9b7d07ba843fc4b5f129f173696efb2d07d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cea217b9001415115dff5c54a882796b3d4486c6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e33759a1f4f50a2acd609acff81c0e855df111ba","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a52652efd8f985397e87669f505af83f06e335cf","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139704","url":"https://www.cve.org/CVERecord?id=CVE-2026-139704","licence":"CVE Terms of Use","modified":"2026-11-30T13:37:12.289Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139704","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139704","licence":"Public domain","modified":"2026-11-30T14:20:00.647Z"}],"updatedAt":"2026-11-30T14:33:38.069Z","epss":{"score":0.0031,"percentile":0.25778,"date":"2026-12-01T12:00:22.000Z"}}