CVE-2024-27034 f2fs: compress: fix to cover normal cluster write with cp_rwsem

High 7.8 Published Updated

A race condition in the Linux kernel f2fs filesystem allows data corruption when overwriting compressed clusters, requiring a kernel patch.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-27034?

CVE-2024-27034 is a high-severity vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2024-27034?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-27034?

Apply the vendor's patch.

Is CVE-2024-27034 being exploited?

There is no known exploitation of CVE-2024-27034 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-27034, DEBIAN-CVE-2024-27034, GHSA-292c-cv4c-47f7, ROOT-OS-DEBIAN-11-CVE-2024-27034, UBUNTU-CVE-2024-27034.

Is CVE-2024-27034 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free