{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "4e56a6411fbce6f859566e17298114c2434391a4"
            },
            {
              "fixed": "1bf88a382dc8a06ca3bc7b7849d7045e618e41c1"
            },
            {
              "fixed": "e6ea1eacb3988d2c4b90412badddeacfeee0c318"
            },
            {
              "fixed": "282c82534c0e9e113e5f7c41bda47c1ede721e4a"
            },
            {
              "fixed": "f71ffad8d4e3468bb09f3039d38b53f8018decaa"
            },
            {
              "fixed": "8e76c9b7d07ba843fc4b5f129f173696efb2d07d"
            },
            {
              "fixed": "cea217b9001415115dff5c54a882796b3d4486c6"
            },
            {
              "fixed": "e33759a1f4f50a2acd609acff81c0e855df111ba"
            },
            {
              "fixed": "a52652efd8f985397e87669f505af83f06e335cf"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139704.json"
  },
  "details": "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.",
  "id": "CVE-2026-139704",
  "modified": "2026-11-30T14:45:38.465151565Z",
  "published": "2026-11-30T13:37:12.289Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1bf88a382dc8a06ca3bc7b7849d7045e618e41c1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/282c82534c0e9e113e5f7c41bda47c1ede721e4a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8e76c9b7d07ba843fc4b5f129f173696efb2d07d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a52652efd8f985397e87669f505af83f06e335cf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cea217b9001415115dff5c54a882796b3d4486c6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e33759a1f4f50a2acd609acff81c0e855df111ba"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e6ea1eacb3988d2c4b90412badddeacfeee0c318"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f71ffad8d4e3468bb09f3039d38b53f8018decaa"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139704.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139704"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "gfs2: Fix journaled truncate range end offset"
}