# CVE-2026-139013: f2fs: force out-place update for all writes on compressed file

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-30T13:27:03.960Z
- Modified: 2026-11-30T14:18:04.657Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 43a79e633e5376d5dd98b3eb8f6f5afec8187794; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before c716b708c3a085d409f5f4d06e7b27f0061de81c; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 10b703b2815fc6026cab082578e8d14ad90099db; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 7000891d025ba0b632955febc74256fb03acf7fa; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 49d7e920a2098fa6763b111924d99630d366af39; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 241fcc1d7f9868992510a41fb0427c593440805c; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4; 5.6 (not affected: before 5.6; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/43a79e633e5376d5dd98b3eb8f6f5afec8187794>
- <https://git.kernel.org/stable/c/c716b708c3a085d409f5f4d06e7b27f0061de81c>
- <https://git.kernel.org/stable/c/10b703b2815fc6026cab082578e8d14ad90099db>
- <https://git.kernel.org/stable/c/7000891d025ba0b632955febc74256fb03acf7fa>
- <https://git.kernel.org/stable/c/49d7e920a2098fa6763b111924d99630d366af39>
- <https://git.kernel.org/stable/c/241fcc1d7f9868992510a41fb0427c593440805c>
- <https://git.kernel.org/stable/c/1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b>
- <https://git.kernel.org/stable/c/a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4>

## Sources

- CVE List: [CVE-2026-139013](https://www.cve.org/CVERecord?id=CVE-2026-139013), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139013](https://nvd.nist.gov/vuln/detail/CVE-2026-139013), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139013 · Whole record: https://cve.day/CVE-2026-139013.json · Rebuilt by cve.day 2026-11-30T14:32:48.829Z
