Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-27032
HistoryMay 01, 2024 - 12:53 p.m.

CVE-2024-27032 f2fs: fix to avoid potential panic during recovery

2024-05-0112:53:32
Linux
github.com
1
linux kernel
f2fs
recovery
panic
deadloop

6.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.8%

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix to avoid potential panic during recovery

During recovery, if FAULT_BLOCK is on, it is possible that
f2fs_reserve_new_block() will return -ENOSPC during recovery,
then it may trigger panic.

Also, if fault injection rate is 1 and only FAULT_BLOCK fault
type is on, it may encounter deadloop in loop of block reservation.

Let’s change as below to fix these issues:

  • remove bug_on() to avoid panic.
  • limit the loop count of block reservation to avoid potential
    deadloop.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/f2fs/f2fs.h",
      "fs/f2fs/recovery.c"
    ],
    "versions": [
      {
        "version": "b1020a546779",
        "lessThan": "fe4de493572a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2a7b12d4705b",
        "lessThan": "8844b2f8a3f0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b29cc6e29b5e",
        "lessThan": "d034810d02a5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "956fa1ddc132",
        "lessThan": "f26091a98131",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "956fa1ddc132",
        "lessThan": "21ec68234826",
        "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/f2fs.h",
      "fs/f2fs/recovery.c"
    ],
    "versions": [
      {
        "version": "6.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.8",
        "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"
      }
    ]
  }
]

6.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.8%