{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: compress: fix to cover normal cluster write with cp_rwsem\n\nWhen we overwrite compressed cluster w/ normal cluster, we should\nnot unlock cp_rwsem during f2fs_write_raw_pages(), otherwise data\nwill be corrupted if partial blocks were persisted before CP & SPOR,\ndue to cluster metadata wasn't updated atomically."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/f2fs/compress.c",
                  "fs/f2fs/data.c"
               ],
               "versions": [
                  {
                     "version": "4c8ff7095bef",
                     "lessThan": "7d420eaaa18e",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "4c8ff7095bef",
                     "lessThan": "542c8b3c774a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "4c8ff7095bef",
                     "lessThan": "75abfd61392b",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "4c8ff7095bef",
                     "lessThan": "2b1b14d9fc94",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "4c8ff7095bef",
                     "lessThan": "52982edfcefd",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "4c8ff7095bef",
                     "lessThan": "fd244524c2cf",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/f2fs/compress.c",
                  "fs/f2fs/data.c"
               ],
               "versions": [
                  {
                     "version": "5.6",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "5.6",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.153",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.83",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.23",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.7.11",
                     "lessThanOrEqual": "6.7.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8.2",
                     "lessThanOrEqual": "6.8.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.9",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/7d420eaaa18ec8e2bb4eeab8c65c00492ef6f416"
            },
            {
               "url": "https://git.kernel.org/stable/c/542c8b3c774a480bfd0804291a12f6f2391b0cd1"
            },
            {
               "url": "https://git.kernel.org/stable/c/75abfd61392b1db391bde6d738a30d685b843286"
            },
            {
               "url": "https://git.kernel.org/stable/c/2b1b14d9fc94b8feae20808684c8af28ec80f45b"
            },
            {
               "url": "https://git.kernel.org/stable/c/52982edfcefd475cc34af663d5c47c0cddaa5739"
            },
            {
               "url": "https://git.kernel.org/stable/c/fd244524c2cf07b5f4c3fe8abd6a99225c76544b"
            }
         ],
         "title": "f2fs: compress: fix to cover normal cluster write with cp_rwsem",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-27034",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
