{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "b32c54983898bd8bb97abacf0e8f9473d6cd48c1"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b32c54983898bd8bb97abacf0e8f9473d6cd48c1"
            }
          ],
          "repo": "https://github.com/aladdin-r-d/lwext4",
          "type": "GIT"
        },
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "1.0.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "b9c842f168e6044bd03fe34e1237eda33c299908"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b9c842f168e6044bd03fe34e1237eda33c299908"
            }
          ],
          "repo": "https://github.com/gkostka/lwext4",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-369"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138371.json"
  },
  "details": "lwext4 through 1.0.0 contains a divide-by-zero vulnerability in ext4_fs_init_inode_table() in src/ext4_fs.c because ext4_sb_check() does not reject inode sizes larger than the block size. Attackers can supply a crafted ext4 image with an oversized inode_size and uninitialized inode table flags, raising SIGFPE and crashing the mounting application.",
  "id": "CVE-2026-138371",
  "modified": "2026-11-30T20:45:34.694538599Z",
  "published": "2026-11-29T13:24:25.226Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138371.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138371"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/lwext4-through-1.0.0-divide-by-zero-via-ext4-fs-init-inode-table"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/gkostka/lwext4/issues/174"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Aladdin-R-D/lwext4/commit/b32c54983898bd8bb97abacf0e8f9473d6cd48c1"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gkostka/lwext4/pull/111"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gkostka/lwext4"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L429-L441"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_table"
}