---
id: CVE-2024-27032
title: |-
  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 recov…
summary: |-
  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 recov…
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H'
cwe:
  - CWE-835
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.19.307, < 4.20'
  - 'linux_kernel >= 5.4.269, < 5.5'
  - 'linux_kernel >= 5.10.210, < 5.11'
  - 'linux_kernel >= 5.15.149, < 5.16'
  - 'linux_kernel >= 6.1.77, < 6.1.83'
  - 'linux_kernel >= 6.6.16, < 6.6.23'
  - 'linux_kernel >= 6.7.4, < 6.7.11'
  - 'linux_kernel >= 6.8, < 6.8.2'
patched:
  - linux_kernel 6.8.2
published: '2024-05-01'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:37.163'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-27032'
references:
  - url: 'https://git.kernel.org/stable/c/21ec68234826b1b54ab980a8df6e33c74cfbee58'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8844b2f8a3f0c428b74672f9726f9950b1a7764c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d034810d02a5af8eb74debe29877dcaf5f00fdd1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f26091a981318b5b7451d61f99bc073a6af8db67'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/fe4de493572a4263554903bf9c3afc5c196e15f0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/21ec68234826b1b54ab980a8df6e33c74cfbee58'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/8844b2f8a3f0c428b74672f9726f9950b1a7764c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/d034810d02a5af8eb74debe29877dcaf5f00fdd1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/f26091a981318b5b7451d61f99bc073a6af8db67'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/fe4de493572a4263554903bf9c3afc5c196e15f0'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00292
epssPercentile: 0.20359
ingestedAt: '2026-10-15T03:30:12.669Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-06-06T18:39:19.391888Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 4.19.307, < 4.20`
- `linux_kernel >= 5.4.269, < 5.5`
- `linux_kernel >= 5.10.210, < 5.11`
- `linux_kernel >= 5.15.149, < 5.16`
- `linux_kernel >= 6.1.77, < 6.1.83`
- `linux_kernel >= 6.6.16, < 6.6.23`
- `linux_kernel >= 6.7.4, < 6.7.11`
- `linux_kernel >= 6.8, < 6.8.2`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.2`
