{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "2760ed20808fd63b0fde9150157531fe8190c0b7"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2760ed20808fd63b0fde9150157531fe8190c0b7"
            }
          ],
          "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": [
                  {
                    "introduced": "4"
                  },
                  {
                    "last_affected": "1.0.0"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "890484c72dbb321535127625c3686e51f1f424b9"
            }
          ],
          "repo": "https://github.com/gkostka/lwext4",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138370.json"
  },
  "details": "lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4_fs_mark_bitmap_end() in src/ext4_fs.c that allows attackers to corrupt heap memory via a crafted ext4 image. Attackers can supply superblock fields yielding group_blocks above INT_MAX, making start_bit negative and writing hundreds of MiB past the bitmap buffer, crashing the mounting application.",
  "id": "CVE-2026-138370",
  "modified": "2026-11-30T20:45:33.765607648Z",
  "published": "2026-11-29T13:24:26.295Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138370.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138370"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/lwext4-through-1.0.0-out-of-bounds-write-via-ext4-fs-mark-bitmap-end"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/gkostka/lwext4/issues/172"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Aladdin-R-D/lwext4/commit/2760ed20808fd63b0fde9150157531fe8190c0b7"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gkostka/lwext4"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L272-L284"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L338-L372"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "lwext4 through 1.0.0 Out-of-Bounds Write via ext4_fs_mark_bitmap_end"
}