{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-31452",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-31452",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-04-22T13:53:46.917Z",
    "updatedAt": "2026-10-15T01:16:26.796Z",
    "importedAt": "2026-10-24T01:58:02.025Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "ext4: convert inline data to extents when truncate exceeds inline size",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: convert inline data to extents when truncate exceeds inline size\n\nAdd a check in ext4_setattr() to convert files from inline data storage\nto extent-based storage when truncate() grows the file size beyond the\ninline capacity. This prevents the filesystem from entering an\ninconsistent state where the inline data flag is set but the file size\nexceeds what can be stored inline.\n\nWithout this fix, the following sequence causes a kernel BUG_ON():\n\n1. Mount filesystem with inode that has inline flag set and small size\n2. truncate(file, 50MB) - grows size but inline flag remains set\n3. sendfile() attempts to write data\n4. ext4_write_inline_data() hits BUG_ON(write_size > inline_capacity)\n\nThe crash occurs because ext4_write_inline_data() expects inline storage\nto accommodate the write, but the actual inline capacity (~60 bytes for\ni_block + ~96 bytes for xattrs) is far smaller than the file size and\nwrite request.\n\nThe fix checks if the new size from setattr exceeds the inode's actual\ninline capacity (EXT4_I(inode)->i_inline_size) and converts the file to\nextent-based storage before proceeding with the size change.\n\nThis addresses the root cause by ensuring the inline data flag and file\nsize remain consistent during truncate operations.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "67cf5b09a46f72e048501b84996f2f77bc42e947",
              "status": "affected",
              "versionType": "git",
              "lessThan": "110d7ef602659ce4d7947c5480f7ca2779696aaf"
            },
            {
              "version": "67cf5b09a46f72e048501b84996f2f77bc42e947",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f53a5d9f32924bc2a810d2df243b7714da58b636"
            },
            {
              "version": "67cf5b09a46f72e048501b84996f2f77bc42e947",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c047332be7195833a5c5126816c2502df8269fe4"
            },
            {
              "version": "67cf5b09a46f72e048501b84996f2f77bc42e947",
              "status": "affected",
              "versionType": "git",
              "lessThan": "699bac4d4c951974d55b045c983d1de777215949"
            },
            {
              "version": "67cf5b09a46f72e048501b84996f2f77bc42e947",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7920dcc571cef3d8aa9ee109c136125d61d41669"
            },
            {
              "version": "67cf5b09a46f72e048501b84996f2f77bc42e947",
              "status": "affected",
              "versionType": "git",
              "lessThan": "93cb2d103e5c707de0f7ad58a39b7f0fddc27aa6"
            },
            {
              "version": "67cf5b09a46f72e048501b84996f2f77bc42e947",
              "status": "affected",
              "versionType": "git",
              "lessThan": "07c1a31af18290054da3d18221b8bf58983c5d3a"
            },
            {
              "version": "67cf5b09a46f72e048501b84996f2f77bc42e947",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ed9356a30e59c7cc3198e7fc46cfedf3767b9b17"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "3.8",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "3.8"
            },
            {
              "version": "5.10.253",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.203",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.168",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.131",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.80",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.21",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "6.19.11",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.19.*"
            },
            {
              "version": "7.0",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}