{"api_version":"1","generated_at":"2026-11-30T18:38:06+00:00","cve":"CVE-2026-139013","urls":{"html":"https://cve.report/CVE-2026-139013","api":"https://cve.report/api/cve/CVE-2026-139013.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139013","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139013"},"summary":{"title":"f2fs: force out-place update for all writes on compressed file","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:04","updated_at":"2026-11-30 14:18:04"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/49d7e920a2098fa6763b111924d99630d366af39","name":"https://git.kernel.org/stable/c/49d7e920a2098fa6763b111924d99630d366af39","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c716b708c3a085d409f5f4d06e7b27f0061de81c","name":"https://git.kernel.org/stable/c/c716b708c3a085d409f5f4d06e7b27f0061de81c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4","name":"https://git.kernel.org/stable/c/a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7000891d025ba0b632955febc74256fb03acf7fa","name":"https://git.kernel.org/stable/c/7000891d025ba0b632955febc74256fb03acf7fa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/43a79e633e5376d5dd98b3eb8f6f5afec8187794","name":"https://git.kernel.org/stable/c/43a79e633e5376d5dd98b3eb8f6f5afec8187794","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/241fcc1d7f9868992510a41fb0427c593440805c","name":"https://git.kernel.org/stable/c/241fcc1d7f9868992510a41fb0427c593440805c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/10b703b2815fc6026cab082578e8d14ad90099db","name":"https://git.kernel.org/stable/c/10b703b2815fc6026cab082578e8d14ad90099db","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b","name":"https://git.kernel.org/stable/c/1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139013","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139013","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 43a79e633e5376d5dd98b3eb8f6f5afec8187794 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 c716b708c3a085d409f5f4d06e7b27f0061de81c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 10b703b2815fc6026cab082578e8d14ad90099db git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 7000891d025ba0b632955febc74256fb03acf7fa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 49d7e920a2098fa6763b111924d99630d366af39 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 241fcc1d7f9868992510a41fb0427c593440805c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4c8ff7095bef64fc47e996a938f7d57f9e077da3 a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.6","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/f2fs/data.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"43a79e633e5376d5dd98b3eb8f6f5afec8187794","status":"affected","version":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","versionType":"git"},{"lessThan":"c716b708c3a085d409f5f4d06e7b27f0061de81c","status":"affected","version":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","versionType":"git"},{"lessThan":"10b703b2815fc6026cab082578e8d14ad90099db","status":"affected","version":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","versionType":"git"},{"lessThan":"7000891d025ba0b632955febc74256fb03acf7fa","status":"affected","version":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","versionType":"git"},{"lessThan":"49d7e920a2098fa6763b111924d99630d366af39","status":"affected","version":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","versionType":"git"},{"lessThan":"241fcc1d7f9868992510a41fb0427c593440805c","status":"affected","version":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","versionType":"git"},{"lessThan":"1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b","status":"affected","version":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","versionType":"git"},{"lessThan":"a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4","status":"affected","version":"4c8ff7095bef64fc47e996a938f7d57f9e077da3","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/f2fs/data.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.6"},{"lessThan":"5.6","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:27:03.960Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/43a79e633e5376d5dd98b3eb8f6f5afec8187794"},{"url":"https://git.kernel.org/stable/c/c716b708c3a085d409f5f4d06e7b27f0061de81c"},{"url":"https://git.kernel.org/stable/c/10b703b2815fc6026cab082578e8d14ad90099db"},{"url":"https://git.kernel.org/stable/c/7000891d025ba0b632955febc74256fb03acf7fa"},{"url":"https://git.kernel.org/stable/c/49d7e920a2098fa6763b111924d99630d366af39"},{"url":"https://git.kernel.org/stable/c/241fcc1d7f9868992510a41fb0427c593440805c"},{"url":"https://git.kernel.org/stable/c/1af1d75f3cf0aa8c7d4a3536e6053f1c4f49c31b"},{"url":"https://git.kernel.org/stable/c/a64a3fec11e77a3a0dc0009bdc58b925e45a1bb4"}],"title":"f2fs: force out-place update for all writes on compressed file","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139013","datePublished":"2026-11-30T13:27:03.960Z","dateReserved":"2026-11-30T13:22:15.909Z","dateUpdated":"2026-11-30T13:27:03.960Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:04","lastModifiedDate":"2026-11-30 14:18:04","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139013","Ordinal":"1","Title":"f2fs: force out-place update for all writes on compressed file","CVE":"CVE-2026-139013","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139013","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"f2fs: force out-place update for all writes on compressed file"}]}}}