{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "7c414f6f06e9a3934901b6edc3177ae5a1e07094"
            },
            {
              "fixed": "8db6c08e0da0e8f13845128bc975f1f2656060a5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "46c9088cabd4d0469fdb61ac2a9c5003057fe94d"
            },
            {
              "fixed": "8a76ac82ec1a5bd5f378d4174e0dfc8d35d89340"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "d458a0984429c2d47e60254f5bc4119cbafe83a2"
            },
            {
              "fixed": "435cf27c40b01315e33918c20d529f4ace0c5f57"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "70376c7ff31221f1d21db5611d8209e677781d3a"
            },
            {
              "fixed": "7a81c9cf915cc899db84e0fc02f5c6b545eaed4b"
            },
            {
              "fixed": "bb88934553eb89573145cb01a413860771aed97f"
            },
            {
              "fixed": "bd2919d4491068974c6348961d7af6dc0e7b9108"
            },
            {
              "fixed": "3f749d1755c1b82f7c102bd9522ea3b5039d3171"
            },
            {
              "fixed": "33ed0a0567e0abe66ea65e89dad2e35082890fbe"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "45df749f827c286adbc951f2a4865b67f0442ba9"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4d4cb76636134bf9a0c9c3432dae936f99954586"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.19.280"
            },
            {
              "fixed": "4.20"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.4.240"
            },
            {
              "fixed": "5.5"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.10.177"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.15.93"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.11"
            },
            {
              "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.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139020.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: reject invalid inode sizes\n\nA corrupted GFS2 image can store a dinode size that is larger than what VFS\ni_size can represent. gfs2_dinode_in() reads the on-disk di_size as a u64 and\nwrites it directly into inode-\u003ei_size. If the value is larger than S64_MAX, the\nincore i_size becomes negative. That negative value can bypass the existing\nstuffed inode size check:\n\ninode-\u003ei_size \u003e gfs2_max_stuffed_size(ip)\n\nLater, gfs2_quotad may try to sync the quota file and unstuff the quota inode.\ngfs2_unstuffer_folio() reads the negative i_size into an unsigned length and\npasses it to memcpy(), turning it into a huge copy size and triggering a\nout-of-bound issue.\n\nReject dinodes whose size exceeds sb-\u003es_maxbytes before storing the value in\ninode-\u003ei_size. Also make the stuffed inode check use the raw on-disk size while\nit is still unsigned.",
  "id": "CVE-2026-139020",
  "modified": "2026-12-01T20:46:10.441258291Z",
  "published": "2026-11-30T13:27:07.802Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/33ed0a0567e0abe66ea65e89dad2e35082890fbe"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3f749d1755c1b82f7c102bd9522ea3b5039d3171"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/435cf27c40b01315e33918c20d529f4ace0c5f57"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7a81c9cf915cc899db84e0fc02f5c6b545eaed4b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8a76ac82ec1a5bd5f378d4174e0dfc8d35d89340"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8db6c08e0da0e8f13845128bc975f1f2656060a5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bb88934553eb89573145cb01a413860771aed97f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bd2919d4491068974c6348961d7af6dc0e7b9108"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139020.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139020"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "gfs2: reject invalid inode sizes"
}