f2fs: force out-place update for all writes on compressed file

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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

f2fs: force out-place update for all writes on compressed file

For compressed file, compressed write may fail and fall back to raw write.

-Thread A - Thread B - f2fs_write_multi_pages - f2fs_down_write(&sbi->cp_rwsem); - f2fs_write_compressed_pages - ... - f2fs_trylock_op - ... - f2fs_down_read_trylock(&sbi->cp_rwsem); - ... - f2fs_write_raw_pages - ...

Thread B acquires the lock first, which causes Thread A to fail lock acquisition and fall back to raw-data write. IPU_FORCE is enabled on small-capacity storage devices (< 16GB), so f2fs_write_raw_pages() overwrites the original compressed data in-place.

The in-memory node has been updated with raw-data addresses, while the node metadata stored on eMMC still remains in compressed state. If a power-cut occurs before the node is flushed to disk, on-disk inconsistency arises: disk data is raw, yet metadata treats it as a compressed cluster, leading to decompression failure.

To eliminate this risk completely, force out-place update for all write operations on compressed file.

ProductVersions
Linux Linux4c8ff7095bef64fc47e996a938f7d57f9e077da3 to before 43a79e633e5376d5dd98b3eb8f6f5afec8187794 Affected4c8ff7095bef64fc47e996a938f7d57f9e077da3 to before c716b708c3a085d409f5f4d06e7b27f0061de81c Affected4c8ff7095bef64fc47e996a938f7d57f9e077da3 to before 10b703b2815fc6026cab082578e8d14ad90099db Affected4c8ff7095bef64fc47e996a938f7d57f9e077da3 to before 7000891d025ba0b632955febc74256fb03acf7fa Affected4c8ff7095bef64fc47e996a938f7d57f9e077da3 to before 49d7e920a2098fa6763b111924d99630d366af39 Affected4c8ff7095bef64fc47e996a938f7d57f9e077da3 to before 241fcc1d7f9868992510a41fb0427c593440805c Affected4c8ff7095bef64fc47e996a938f7d57f9e077da3 to before 1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b Affected4c8ff7095bef64fc47e996a938f7d57f9e077da3 to before a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4 Affected
Linux Linux5.6 Affectedbefore 5.6 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.