f2fs: force out-place update for all writes on compressed file
Summary
| CVE | CVE-2026-139013 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:18:04 UTC |
| Updated | 2026-11-30 14:18:04 UTC |
| 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. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 43a79e633e5376d5dd98b3eb8f6f5afec8187794 git |
Not specified |
| CNA |
Linux |
Linux |
affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 c716b708c3a085d409f5f4d06e7b27f0061de81c git |
Not specified |
| CNA |
Linux |
Linux |
affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 10b703b2815fc6026cab082578e8d14ad90099db git |
Not specified |
| CNA |
Linux |
Linux |
affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 7000891d025ba0b632955febc74256fb03acf7fa git |
Not specified |
| CNA |
Linux |
Linux |
affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 49d7e920a2098fa6763b111924d99630d366af39 git |
Not specified |
| CNA |
Linux |
Linux |
affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 241fcc1d7f9868992510a41fb0427c593440805c git |
Not specified |
| CNA |
Linux |
Linux |
affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b git |
Not specified |
| CNA |
Linux |
Linux |
affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4 git |
Not specified |
| CNA |
Linux |
Linux |
affected 5.6 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.6 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.10.275 5.10.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15.226 5.15.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.117 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.63 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.4 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/49d7e920a2098fa6763b111924d99630d366af39 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/c716b708c3a085d409f5f4d06e7b27f0061de81c |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/7000891d025ba0b632955febc74256fb03acf7fa |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/43a79e633e5376d5dd98b3eb8f6f5afec8187794 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/241fcc1d7f9868992510a41fb0427c593440805c |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/10b703b2815fc6026cab082578e8d14ad90099db |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.