---
id: CVE-2024-34027
title: >-
  In the Linux kernel, the following vulnerability has been resolved:


  f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem
  lock


  It needs to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock

  to avoid racin…
summary: >-
  In the Linux kernel, the following vulnerability has been resolved:


  f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem
  lock


  It needs to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock

  to avoid racin…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-770
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.8, < 5.10.219'
  - 'linux_kernel >= 5.11, < 5.15.161'
  - 'linux_kernel >= 5.16, < 6.1.93'
  - 'linux_kernel >= 6.2, < 6.6.33'
  - 'linux_kernel >= 6.7, < 6.9.4'
patched:
  - linux_kernel 6.9.4
published: '2024-06-24'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:45.480'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-34027'
references:
  - url: 'https://git.kernel.org/stable/c/0a4ed2d97cb6d044196cc3e726b6699222b41019'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/329edb7c9e3b6ca27e6ca67ab1cdda1740fb3a2b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5d47d63883735718825ca2efc4fca6915469774f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/69136304fd144144a4828c7b7b149d0f80321ba4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a6e1f7744e9b84f86a629a76024bba8468aa153b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b5bac43875aa27ec032dbbb86173baae6dce6182'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/0a4ed2d97cb6d044196cc3e726b6699222b41019'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/329edb7c9e3b6ca27e6ca67ab1cdda1740fb3a2b'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/5d47d63883735718825ca2efc4fca6915469774f'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/69136304fd144144a4828c7b7b149d0f80321ba4'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/a6e1f7744e9b84f86a629a76024bba8468aa153b'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/b5bac43875aa27ec032dbbb86173baae6dce6182'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00237
epssPercentile: 0.14629
ingestedAt: '2026-10-15T03:30:12.714Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2024-11-05T14:50:20.784869Z'
---

## Overview

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

f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock

It needs to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock
to avoid racing with checkpoint, otherwise, filesystem metadata including
blkaddr in dnode, inode fields and .total_valid_block_count may be
corrupted after SPO case.

## Affected

- `linux_kernel >= 5.8, < 5.10.219`
- `linux_kernel >= 5.11, < 5.15.161`
- `linux_kernel >= 5.16, < 6.1.93`
- `linux_kernel >= 6.2, < 6.6.33`
- `linux_kernel >= 6.7, < 6.9.4`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.9.4`
