{
  "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-2021-47114",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47114",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-03-15T20:14:22.035Z",
    "updatedAt": "2026-05-11T13:48:20.406Z",
    "importedAt": "2026-10-24T01:56:36.661Z",
    "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": "ocfs2: fix data corruption by fallocate",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix data corruption by fallocate\n\nWhen fallocate punches holes out of inode size, if original isize is in\nthe middle of last cluster, then the part from isize to the end of the\ncluster will be zeroed with buffer write, at that time isize is not yet\nupdated to match the new size, if writeback is kicked in, it will invoke\nocfs2_writepage()->block_write_full_page() where the pages out of inode\nsize will be dropped.  That will cause file corruption.  Fix this by\nzero out eof blocks when extending the inode size.\n\nRunning the following command with qemu-image 4.2.1 can get a corrupted\ncoverted image file easily.\n\n    qemu-img convert -p -t none -T none -f qcow2 $qcow_image \\\n             -O qcow2 -o compat=1.1 $qcow_image.conv\n\nThe usage of fallocate in qemu is like this, it first punches holes out\nof inode size, then extend the inode size.\n\n    fallocate(11, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 2276196352, 65536) = 0\n    fallocate(11, 0, 2276196352, 65536) = 0\n\nv1: https://www.spinics.net/lists/linux-fsdevel/msg193999.html\nv2: https://lore.kernel.org/linux-fsdevel/20210525093034.GB4112@quack2.suse.cz/T/",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "385820a38d5e7c70b20af4d68767b1920b1e4133",
              "status": "affected",
              "versionType": "git",
              "lessThan": "624fa7baa3788dc9e57840ba5b94bc22b03cda57"
            },
            {
              "version": "385820a38d5e7c70b20af4d68767b1920b1e4133",
              "status": "affected",
              "versionType": "git",
              "lessThan": "33e03adafb29eedae1bae9cdb50c1385279fcf65"
            },
            {
              "version": "385820a38d5e7c70b20af4d68767b1920b1e4133",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a1700479524bb9cb5e8ae720236a6fabd003acae"
            },
            {
              "version": "385820a38d5e7c70b20af4d68767b1920b1e4133",
              "status": "affected",
              "versionType": "git",
              "lessThan": "cec4e857ffaa8c447f51cd8ab4e72350077b6770"
            },
            {
              "version": "385820a38d5e7c70b20af4d68767b1920b1e4133",
              "status": "affected",
              "versionType": "git",
              "lessThan": "cc2edb99ea606a45182b5ea38cc8f4e583aa0774"
            },
            {
              "version": "385820a38d5e7c70b20af4d68767b1920b1e4133",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c8d5faee46242c3f33b8a71a4d7d52214785bfcc"
            },
            {
              "version": "385820a38d5e7c70b20af4d68767b1920b1e4133",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0a31dd6fd2f4e7db538fb6eb1f06973d81f8dd3b"
            },
            {
              "version": "385820a38d5e7c70b20af4d68767b1920b1e4133",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6bba4471f0cc1296fe3c2089b9e52442d3074b2e"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.23",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.23"
            },
            {
              "version": "4.4.272",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.4.*"
            },
            {
              "version": "4.9.272",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.9.*"
            },
            {
              "version": "4.14.236",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.14.*"
            },
            {
              "version": "4.19.194",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.125",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.43",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.12.10",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.12.*"
            },
            {
              "version": "5.13",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}