cve-2024-53220
Vulnerability from cvelistv5
Published
2024-12-27 13:50
Modified
2025-01-20 06:21
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to account dirty data in __get_secs_required() It will trigger system panic w/ testcase in [1]: ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:2752! RIP: 0010:new_curseg+0xc81/0x2110 Call Trace: f2fs_allocate_data_block+0x1c91/0x4540 do_write_page+0x163/0xdf0 f2fs_outplace_write_data+0x1aa/0x340 f2fs_do_write_data_page+0x797/0x2280 f2fs_write_single_data_page+0x16cd/0x2190 f2fs_write_cache_pages+0x994/0x1c80 f2fs_write_data_pages+0x9cc/0xea0 do_writepages+0x194/0x7a0 filemap_fdatawrite_wbc+0x12b/0x1a0 __filemap_fdatawrite_range+0xbb/0xf0 file_write_and_wait_range+0xa1/0x110 f2fs_do_sync_file+0x26f/0x1c50 f2fs_sync_file+0x12b/0x1d0 vfs_fsync_range+0xfa/0x230 do_fsync+0x3d/0x80 __x64_sys_fsync+0x37/0x50 x64_sys_call+0x1e88/0x20d0 do_syscall_64+0x4b/0x110 entry_SYSCALL_64_after_hwframe+0x76/0x7e The root cause is if checkpoint_disabling and lfs_mode are both on, it will trigger OPU for all overwritten data, it may cost more free segment than expected, so f2fs must account those data correctly to calculate cosumed free segments later, and return ENOSPC earlier to avoid run out of free segment during block allocation. [1] https://lore.kernel.org/fstests/20241015025106.3203676-1-chao@kernel.org/
Impacted products
Vendor Product Version
Linux Linux Version: 4354994f097d068a894aa1a0860da54571df3582
Version: 4354994f097d068a894aa1a0860da54571df3582
Version: 4354994f097d068a894aa1a0860da54571df3582
Version: 4354994f097d068a894aa1a0860da54571df3582
Version: 4354994f097d068a894aa1a0860da54571df3582
Create a notification for this product.
   Linux Linux Version: 4.20
Create a notification for this product.
Show details on NVD website


{
   containers: {
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "fs/f2fs/segment.h",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "6e58b2987960efcd917bc42da781cee256213618",
                     status: "affected",
                     version: "4354994f097d068a894aa1a0860da54571df3582",
                     versionType: "git",
                  },
                  {
                     lessThan: "f1b8bfe8d2f2fdf905d37c174d5bc1cd2b6910c5",
                     status: "affected",
                     version: "4354994f097d068a894aa1a0860da54571df3582",
                     versionType: "git",
                  },
                  {
                     lessThan: "9313b85ddc120e2d2f0efaf86d0204d4c98d60b1",
                     status: "affected",
                     version: "4354994f097d068a894aa1a0860da54571df3582",
                     versionType: "git",
                  },
                  {
                     lessThan: "e812871c068cc0f91ff9f5cee87d00df1c44aae4",
                     status: "affected",
                     version: "4354994f097d068a894aa1a0860da54571df3582",
                     versionType: "git",
                  },
                  {
                     lessThan: "1acd73edbbfef2c3c5b43cba4006a7797eca7050",
                     status: "affected",
                     version: "4354994f097d068a894aa1a0860da54571df3582",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "fs/f2fs/segment.h",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "4.20",
                  },
                  {
                     lessThan: "4.20",
                     status: "unaffected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.1.*",
                     status: "unaffected",
                     version: "6.1.120",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.6.*",
                     status: "unaffected",
                     version: "6.6.64",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.11.*",
                     status: "unaffected",
                     version: "6.11.11",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.12.*",
                     status: "unaffected",
                     version: "6.12.2",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "*",
                     status: "unaffected",
                     version: "6.13",
                     versionType: "original_commit_for_fix",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix to account dirty data in __get_secs_required()\n\nIt will trigger system panic w/ testcase in [1]:\n\n------------[ cut here ]------------\nkernel BUG at fs/f2fs/segment.c:2752!\nRIP: 0010:new_curseg+0xc81/0x2110\nCall Trace:\n f2fs_allocate_data_block+0x1c91/0x4540\n do_write_page+0x163/0xdf0\n f2fs_outplace_write_data+0x1aa/0x340\n f2fs_do_write_data_page+0x797/0x2280\n f2fs_write_single_data_page+0x16cd/0x2190\n f2fs_write_cache_pages+0x994/0x1c80\n f2fs_write_data_pages+0x9cc/0xea0\n do_writepages+0x194/0x7a0\n filemap_fdatawrite_wbc+0x12b/0x1a0\n __filemap_fdatawrite_range+0xbb/0xf0\n file_write_and_wait_range+0xa1/0x110\n f2fs_do_sync_file+0x26f/0x1c50\n f2fs_sync_file+0x12b/0x1d0\n vfs_fsync_range+0xfa/0x230\n do_fsync+0x3d/0x80\n __x64_sys_fsync+0x37/0x50\n x64_sys_call+0x1e88/0x20d0\n do_syscall_64+0x4b/0x110\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\nThe root cause is if checkpoint_disabling and lfs_mode are both on,\nit will trigger OPU for all overwritten data, it may cost more free\nsegment than expected, so f2fs must account those data correctly to\ncalculate cosumed free segments later, and return ENOSPC earlier to\navoid run out of free segment during block allocation.\n\n[1] https://lore.kernel.org/fstests/20241015025106.3203676-1-chao@kernel.org/",
            },
         ],
         providerMetadata: {
            dateUpdated: "2025-01-20T06:21:30.247Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/6e58b2987960efcd917bc42da781cee256213618",
            },
            {
               url: "https://git.kernel.org/stable/c/f1b8bfe8d2f2fdf905d37c174d5bc1cd2b6910c5",
            },
            {
               url: "https://git.kernel.org/stable/c/9313b85ddc120e2d2f0efaf86d0204d4c98d60b1",
            },
            {
               url: "https://git.kernel.org/stable/c/e812871c068cc0f91ff9f5cee87d00df1c44aae4",
            },
            {
               url: "https://git.kernel.org/stable/c/1acd73edbbfef2c3c5b43cba4006a7797eca7050",
            },
         ],
         title: "f2fs: fix to account dirty data in __get_secs_required()",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-53220",
      datePublished: "2024-12-27T13:50:05.416Z",
      dateReserved: "2024-11-19T17:17:25.024Z",
      dateUpdated: "2025-01-20T06:21:30.247Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-53220\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-12-27T14:15:30.077\",\"lastModified\":\"2024-12-27T14:15:30.077\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nf2fs: fix to account dirty data in __get_secs_required()\\n\\nIt will trigger system panic w/ testcase in [1]:\\n\\n------------[ cut here ]------------\\nkernel BUG at fs/f2fs/segment.c:2752!\\nRIP: 0010:new_curseg+0xc81/0x2110\\nCall Trace:\\n f2fs_allocate_data_block+0x1c91/0x4540\\n do_write_page+0x163/0xdf0\\n f2fs_outplace_write_data+0x1aa/0x340\\n f2fs_do_write_data_page+0x797/0x2280\\n f2fs_write_single_data_page+0x16cd/0x2190\\n f2fs_write_cache_pages+0x994/0x1c80\\n f2fs_write_data_pages+0x9cc/0xea0\\n do_writepages+0x194/0x7a0\\n filemap_fdatawrite_wbc+0x12b/0x1a0\\n __filemap_fdatawrite_range+0xbb/0xf0\\n file_write_and_wait_range+0xa1/0x110\\n f2fs_do_sync_file+0x26f/0x1c50\\n f2fs_sync_file+0x12b/0x1d0\\n vfs_fsync_range+0xfa/0x230\\n do_fsync+0x3d/0x80\\n __x64_sys_fsync+0x37/0x50\\n x64_sys_call+0x1e88/0x20d0\\n do_syscall_64+0x4b/0x110\\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\\n\\nThe root cause is if checkpoint_disabling and lfs_mode are both on,\\nit will trigger OPU for all overwritten data, it may cost more free\\nsegment than expected, so f2fs must account those data correctly to\\ncalculate cosumed free segments later, and return ENOSPC earlier to\\navoid run out of free segment during block allocation.\\n\\n[1] https://lore.kernel.org/fstests/20241015025106.3203676-1-chao@kernel.org/\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1acd73edbbfef2c3c5b43cba4006a7797eca7050\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6e58b2987960efcd917bc42da781cee256213618\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9313b85ddc120e2d2f0efaf86d0204d4c98d60b1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e812871c068cc0f91ff9f5cee87d00df1c44aae4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f1b8bfe8d2f2fdf905d37c174d5bc1cd2b6910c5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.