{"id":"CVE-2026-139013","summary":"f2fs: force out-place update for all writes on compressed file","details":"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-\u003ecp_rwsem);\n   - f2fs_write_compressed_pages                    - ...\n    - f2fs_trylock_op                               - ...\n     - f2fs_down_read_trylock(&sbi-\u003ecp_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 (\u003c 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.","modified":"2026-11-30T15:01:47.162973181Z","published":"2026-11-30T13:27:03.960Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139013.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/10b703b2815fc6026cab082578e8d14ad90099db"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/241fcc1d7f9868992510a41fb0427c593440805c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/43a79e633e5376d5dd98b3eb8f6f5afec8187794"},{"type":"WEB","url":"https://git.kernel.org/stable/c/49d7e920a2098fa6763b111924d99630d366af39"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7000891d025ba0b632955febc74256fb03acf7fa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c716b708c3a085d409f5f4d06e7b27f0061de81c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139013.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139013"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4c8ff7095bef64fc47e996a938f7d57f9e077da3"},{"fixed":"43a79e633e5376d5dd98b3eb8f6f5afec8187794"},{"fixed":"c716b708c3a085d409f5f4d06e7b27f0061de81c"},{"fixed":"10b703b2815fc6026cab082578e8d14ad90099db"},{"fixed":"7000891d025ba0b632955febc74256fb03acf7fa"},{"fixed":"49d7e920a2098fa6763b111924d99630d366af39"},{"fixed":"241fcc1d7f9868992510a41fb0427c593440805c"},{"fixed":"1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b"},{"fixed":"a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139013.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.6.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139013.json"}}],"schema_version":"1.9.2"}