{"id":"CVE-2026-139013","aliases":["CVE-2026-139013"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: force out-place update for all writes on compressed file","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: force out-place update for all writes on compressed file\n\nFor compressed file, compressed write may fail and fall back to raw\nwrite.\n\n-Thread A                                         - Thread B\n  - f2fs_write_multi_pages                          - f2fs_down_write(&sbi->cp_rwsem);\n   - f2fs_write_compressed_pages                    - ...\n    - f2fs_trylock_op                               - ...\n     - f2fs_down_read_trylock(&sbi->cp_rwsem);      - ...\n   - f2fs_write_raw_pages                           - ...\n\nThread B acquires the lock first, which causes Thread A to fail lock\nacquisition and fall back to raw-data write.\nIPU_FORCE is enabled on small-capacity storage devices (< 16GB),\nso f2fs_write_raw_pages() overwrites the original compressed data\nin-place.\n\nThe in-memory node has been updated with raw-data addresses, while the\nnode metadata stored on eMMC still remains in compressed state.\nIf a power-cut occurs before the node is flushed to disk, on-disk\ninconsistency arises: disk data is raw, yet metadata treats it as a\ncompressed cluster, leading to decompression failure.\n\nTo eliminate this risk completely, force out-place update for all\nwrite operations on compressed file.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: force out-place update for all writes on compressed file\n\nFor compressed file, compressed write may fail and fall back to raw\nwrite.\n\n-Thread A                                         - Thread B\n  - f2fs_write_multi_pages                          - f2fs_down_write(&sbi->cp_rwsem);\n   - f2fs_write_compressed_pages                    - ...\n    - f2fs_trylock_op                               - ...\n     - f2fs_down_read_trylock(&sbi->cp_rwsem);      - ...\n   - f2fs_write_raw_pages                           - ...\n\nThread B acquires the lock first, which causes Thread A to fail lock\nacquisition and fall back to raw-data write.\nIPU_FORCE is enabled on small-capacity storage devices (< 16GB),\nso f2fs_write_raw_pages() overwrites the original compressed data\nin-place.\n\nThe in-memory node has been updated with raw-data addresses, while the\nnode metadata stored on eMMC still remains in compressed state.\nIf a power-cut occurs before the node is flushed to disk, on-disk\ninconsistency arises: disk data is raw, yet metadata treats it as a\ncompressed cluster, leading to decompression failure.\n\nTo eliminate this risk completely, force out-place update for all\nwrite operations on compressed file.","source":"cvelist"}],"published":"2026-11-30T13:27:03.960Z","modified":"2026-11-30T14:18:04.657Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","fixed":"43a79e633e5376d5dd98b3eb8f6f5afec8187794","status":"affected"},{"type":"git","introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","fixed":"c716b708c3a085d409f5f4d06e7b27f0061de81c","status":"affected"},{"type":"git","introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","fixed":"10b703b2815fc6026cab082578e8d14ad90099db","status":"affected"},{"type":"git","introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","fixed":"7000891d025ba0b632955febc74256fb03acf7fa","status":"affected"},{"type":"git","introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","fixed":"49d7e920a2098fa6763b111924d99630d366af39","status":"affected"},{"type":"git","introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","fixed":"241fcc1d7f9868992510a41fb0427c593440805c","status":"affected"},{"type":"git","introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","fixed":"1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b","status":"affected"},{"type":"git","introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","fixed":"a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.6","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/43a79e633e5376d5dd98b3eb8f6f5afec8187794","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c716b708c3a085d409f5f4d06e7b27f0061de81c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/10b703b2815fc6026cab082578e8d14ad90099db","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7000891d025ba0b632955febc74256fb03acf7fa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/49d7e920a2098fa6763b111924d99630d366af39","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/241fcc1d7f9868992510a41fb0427c593440805c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139013","url":"https://www.cve.org/CVERecord?id=CVE-2026-139013","licence":"CVE Terms of Use","modified":"2026-11-30T13:27:03.960Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139013","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139013","licence":"Public domain","modified":"2026-11-30T14:18:04.657Z"}],"updatedAt":"2026-11-30T14:32:48.829Z","epss":{"score":0.00211,"percentile":0.12072,"date":"2026-12-01T12:00:22.000Z"}}