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
10
linux kernel
f2fs
recovery
panic
deadloop

AI Score

6.9

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "b1020a546779",
        "lessThan": "fe4de493572a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2a7b12d4705b",
        "lessThan": "8844b2f8a3f0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b29cc6e29b5e",
        "lessThan": "d034810d02a5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "956fa1ddc132",
        "lessThan": "f26091a98131",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "956fa1ddc132",
        "lessThan": "21ec68234826",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/f2fs/f2fs.h",
      "fs/f2fs/recovery.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.8"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.8",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "6.1.83",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.23",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.7.11",
        "versionType": "custom",
        "lessThanOrEqual": "6.7.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.2",
        "versionType": "custom",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/f2fs/f2fs.h",
      "fs/f2fs/recovery.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.9

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial