{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "aa89762c54800208d5afdcd8e6bf124818f17fe0"
            },
            {
              "fixed": "d903d59c0315f59bdf0214b4f13d71c9feb2c45c"
            },
            {
              "fixed": "441abb77222f155e8d931dbabb465466db01cfd7"
            },
            {
              "fixed": "e652d0f5108e447b22da4249bcd23dd1b63c73dd"
            },
            {
              "fixed": "346314bb0cc2fc52b50b73d6ecc62e0217455c2e"
            },
            {
              "fixed": "06c0a0431b9856506fcd9b2c1b0c6136567d756d"
            },
            {
              "fixed": "3fa7139b5f42731a61f78c42433adae13f9adc21"
            },
            {
              "fixed": "2c13e02592b918be7725ab5965e01ef4e46c4b57"
            },
            {
              "fixed": "ca1afd88f5eaaff9168e1466e5401385edf59543"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.14.0"
            },
            {
              "fixed": "5.10.261"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.212"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.178"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.145"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.97"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.40"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74349.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: reject FITRIM ranges shorter than a cluster\n\nocfs2_trim_mainbm() trims the global bitmap in cluster units, but its\ntoo-short range validation only checks sb-\u003es_blocksize.\n\nOn filesystems with a cluster size larger than the block size, a FITRIM\nrange that is at least one block but shorter than one cluster is accepted\nand shifted down to len == 0.  The later start + len - 1 and len -= ... \narithmetic then underflows and can drive trimming past the requested\nrange.\n\nReject ranges shorter than s_clustersize instead.  That preserves the\nexisting -EINVAL behavior for requests that cannot discard even one\nallocation unit and keeps zero-cluster trims out of the group walk.",
  "id": "CVE-2026-74349",
  "modified": "2026-08-18T03:31:20.701185265Z",
  "published": "2026-08-15T05:58:36.630Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/06c0a0431b9856506fcd9b2c1b0c6136567d756d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2c13e02592b918be7725ab5965e01ef4e46c4b57"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/346314bb0cc2fc52b50b73d6ecc62e0217455c2e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3fa7139b5f42731a61f78c42433adae13f9adc21"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/441abb77222f155e8d931dbabb465466db01cfd7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ca1afd88f5eaaff9168e1466e5401385edf59543"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d903d59c0315f59bdf0214b4f13d71c9feb2c45c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e652d0f5108e447b22da4249bcd23dd1b63c73dd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74349.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-74349"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ocfs2: reject FITRIM ranges shorter than a cluster"
}