{"api_version":"1","generated_at":"2026-12-03T07:36:41+00:00","cve":"CVE-2026-142842","urls":{"html":"https://cve.report/CVE-2026-142842","api":"https://cve.report/api/cve/CVE-2026-142842.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142842","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142842"},"summary":{"title":"ext4: fix fast commit replay failing on a read-only mount","description":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix fast commit replay failing on a read-only mount\n\nA filesystem with fast_commit that needs recovery cannot be mounted\nread-only:\n\n  EXT4-fs (dm-0): INFO: recovery required on readonly filesystem\n  EXT4-fs (dm-0): write access will be enabled during recovery\n  WARNING: CPU: 22 PID: 5544 at fs/ext4/ext4_jbd2.c:73\n   ext4_journal_check_start\n   __ext4_journal_start_sb\n   __ext4_unlink\n   ext4_fc_replay\n   do_one_pass\n   jbd2_journal_recover\n   jbd2_journal_load\n   __ext4_fill_super\n  JBD2: journal recovery failed\n  EXT4-fs (dm-0): error loading journal\n\nFast commit replay runs ext4 metadata operations instead of writing\nblocks through the buffer cache: ext4_fc_replay_{unlink,link,create}()\nreach __ext4_unlink() and __ext4_link(), which start a handle.\next4_journal_check_start() returns -EROFS on a read-only sb, and as\nthat is not -ENOENT it propagates out of jbd2_journal_recover() and\nkills the whole recovery.  The EXT4_FC_REPLAY check that would hand\nout a no-journal handle sits after the sb_rdonly() test, so replay can\nnever complete read-only.\n\next4_load_journal() has already promised that write access will be\nenabled during recovery, so make that true for the superblock as well:\nclear SB_RDONLY across jbd2_journal_load() when recovery is needed on a\nread-only mount and the devices are writable, as ext4_orphan_cleanup()\ndoes.  Unlike ext4_handle_error(), which avoids SB_RDONLY because it\nwould need s_umount, the sb here is still inside ext4_fill_super() and\nnot published, so nothing can observe it.\n\nThe failure is not clean either: the replay handlers passing a NULL\nhandle (ext4_fc_replay_inode(), _add_range(), _del_range()) never hit\next4_journal_check_start() and do write, leaving a partially applied\nfast commit behind.\n\nReproducer, where the unlink only ever reaches the fast commit area:\n\n  mke2fs -q -F -t ext4 -O fast_commit -b 4096 /dev/sdb3 262144\n  mount /dev/sdb3 /mnt\n  dd if=/dev/zero of=/mnt/victim bs=4k count=1 conv=fsync\n  sync                          # victim now in a full commit\n  rm /mnt/victim\n  dd if=/dev/zero of=/mnt/trigger bs=4k count=1 conv=fsync\n  <crash, or snapshot the device while mounted and write it back>\n  mount -o ro /dev/sdb3 /mnt\n\nWithout this patch that mount fails; with it recovery completes and\nvictim is gone, i.e. the UNLINK record was really replayed.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:20","updated_at":"2026-12-03 04:18:20"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9","name":"https://git.kernel.org/stable/c/33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ff9251fd6c71b2654744ad5c6f64d29c77cd29cd","name":"https://git.kernel.org/stable/c/ff9251fd6c71b2654744ad5c6f64d29c77cd29cd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9e7b9a6cb744844559911a5c8ff6e627aa9de9c6","name":"https://git.kernel.org/stable/c/9e7b9a6cb744844559911a5c8ff6e627aa9de9c6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4555a9e500651404debb04b38ba64b7dfad3b448","name":"https://git.kernel.org/stable/c/4555a9e500651404debb04b38ba64b7dfad3b448","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0772df264e36c86e4e293d2daef7cac1b7fc549b","name":"https://git.kernel.org/stable/c/0772df264e36c86e4e293d2daef7cac1b7fc549b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e1a881ea4674876721cab97680d1d8308f90e9a4","name":"https://git.kernel.org/stable/c/e1a881ea4674876721cab97680d1d8308f90e9a4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f","name":"https://git.kernel.org/stable/c/8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/70caf777b43f6272f88a41941b0c592a0fea9e04","name":"https://git.kernel.org/stable/c/70caf777b43f6272f88a41941b0c592a0fea9e04","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142842","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142842","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 4555a9e500651404debb04b38ba64b7dfad3b448 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 ff9251fd6c71b2654744ad5c6f64d29c77cd29cd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 70caf777b43f6272f88a41941b0c592a0fea9e04 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 0772df264e36c86e4e293d2daef7cac1b7fc549b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 9e7b9a6cb744844559911a5c8ff6e627aa9de9c6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 e1a881ea4674876721cab97680d1d8308f90e9a4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10 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/ext4/super.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"4555a9e500651404debb04b38ba64b7dfad3b448","status":"affected","version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","versionType":"git"},{"lessThan":"ff9251fd6c71b2654744ad5c6f64d29c77cd29cd","status":"affected","version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","versionType":"git"},{"lessThan":"70caf777b43f6272f88a41941b0c592a0fea9e04","status":"affected","version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","versionType":"git"},{"lessThan":"8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f","status":"affected","version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","versionType":"git"},{"lessThan":"0772df264e36c86e4e293d2daef7cac1b7fc549b","status":"affected","version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","versionType":"git"},{"lessThan":"9e7b9a6cb744844559911a5c8ff6e627aa9de9c6","status":"affected","version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","versionType":"git"},{"lessThan":"33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9","status":"affected","version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","versionType":"git"},{"lessThan":"e1a881ea4674876721cab97680d1d8308f90e9a4","status":"affected","version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ext4/super.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.10"},{"lessThan":"5.10","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.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix fast commit replay failing on a read-only mount\n\nA filesystem with fast_commit that needs recovery cannot be mounted\nread-only:\n\n  EXT4-fs (dm-0): INFO: recovery required on readonly filesystem\n  EXT4-fs (dm-0): write access will be enabled during recovery\n  WARNING: CPU: 22 PID: 5544 at fs/ext4/ext4_jbd2.c:73\n   ext4_journal_check_start\n   __ext4_journal_start_sb\n   __ext4_unlink\n   ext4_fc_replay\n   do_one_pass\n   jbd2_journal_recover\n   jbd2_journal_load\n   __ext4_fill_super\n  JBD2: journal recovery failed\n  EXT4-fs (dm-0): error loading journal\n\nFast commit replay runs ext4 metadata operations instead of writing\nblocks through the buffer cache: ext4_fc_replay_{unlink,link,create}()\nreach __ext4_unlink() and __ext4_link(), which start a handle.\next4_journal_check_start() returns -EROFS on a read-only sb, and as\nthat is not -ENOENT it propagates out of jbd2_journal_recover() and\nkills the whole recovery.  The EXT4_FC_REPLAY check that would hand\nout a no-journal handle sits after the sb_rdonly() test, so replay can\nnever complete read-only.\n\next4_load_journal() has already promised that write access will be\nenabled during recovery, so make that true for the superblock as well:\nclear SB_RDONLY across jbd2_journal_load() when recovery is needed on a\nread-only mount and the devices are writable, as ext4_orphan_cleanup()\ndoes.  Unlike ext4_handle_error(), which avoids SB_RDONLY because it\nwould need s_umount, the sb here is still inside ext4_fill_super() and\nnot published, so nothing can observe it.\n\nThe failure is not clean either: the replay handlers passing a NULL\nhandle (ext4_fc_replay_inode(), _add_range(), _del_range()) never hit\next4_journal_check_start() and do write, leaving a partially applied\nfast commit behind.\n\nReproducer, where the unlink only ever reaches the fast commit area:\n\n  mke2fs -q -F -t ext4 -O fast_commit -b 4096 /dev/sdb3 262144\n  mount /dev/sdb3 /mnt\n  dd if=/dev/zero of=/mnt/victim bs=4k count=1 conv=fsync\n  sync                          # victim now in a full commit\n  rm /mnt/victim\n  dd if=/dev/zero of=/mnt/trigger bs=4k count=1 conv=fsync\n  <crash, or snapshot the device while mounted and write it back>\n  mount -o ro /dev/sdb3 /mnt\n\nWithout this patch that mount fails; with it recovery completes and\nvictim is gone, i.e. the UNLINK record was really replayed."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:20:53.175Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/4555a9e500651404debb04b38ba64b7dfad3b448"},{"url":"https://git.kernel.org/stable/c/ff9251fd6c71b2654744ad5c6f64d29c77cd29cd"},{"url":"https://git.kernel.org/stable/c/70caf777b43f6272f88a41941b0c592a0fea9e04"},{"url":"https://git.kernel.org/stable/c/8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f"},{"url":"https://git.kernel.org/stable/c/0772df264e36c86e4e293d2daef7cac1b7fc549b"},{"url":"https://git.kernel.org/stable/c/9e7b9a6cb744844559911a5c8ff6e627aa9de9c6"},{"url":"https://git.kernel.org/stable/c/33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9"},{"url":"https://git.kernel.org/stable/c/e1a881ea4674876721cab97680d1d8308f90e9a4"}],"title":"ext4: fix fast commit replay failing on a read-only mount","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142842","datePublished":"2026-12-03T03:20:53.175Z","dateReserved":"2026-12-03T03:10:28.332Z","dateUpdated":"2026-12-03T03:20:53.175Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:20","lastModifiedDate":"2026-12-03 04:18:20","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142842","Ordinal":"1","Title":"ext4: fix fast commit replay failing on a read-only mount","CVE":"CVE-2026-142842","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142842","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix fast commit replay failing on a read-only mount\n\nA filesystem with fast_commit that needs recovery cannot be mounted\nread-only:\n\n  EXT4-fs (dm-0): INFO: recovery required on readonly filesystem\n  EXT4-fs (dm-0): write access will be enabled during recovery\n  WARNING: CPU: 22 PID: 5544 at fs/ext4/ext4_jbd2.c:73\n   ext4_journal_check_start\n   __ext4_journal_start_sb\n   __ext4_unlink\n   ext4_fc_replay\n   do_one_pass\n   jbd2_journal_recover\n   jbd2_journal_load\n   __ext4_fill_super\n  JBD2: journal recovery failed\n  EXT4-fs (dm-0): error loading journal\n\nFast commit replay runs ext4 metadata operations instead of writing\nblocks through the buffer cache: ext4_fc_replay_{unlink,link,create}()\nreach __ext4_unlink() and __ext4_link(), which start a handle.\next4_journal_check_start() returns -EROFS on a read-only sb, and as\nthat is not -ENOENT it propagates out of jbd2_journal_recover() and\nkills the whole recovery.  The EXT4_FC_REPLAY check that would hand\nout a no-journal handle sits after the sb_rdonly() test, so replay can\nnever complete read-only.\n\next4_load_journal() has already promised that write access will be\nenabled during recovery, so make that true for the superblock as well:\nclear SB_RDONLY across jbd2_journal_load() when recovery is needed on a\nread-only mount and the devices are writable, as ext4_orphan_cleanup()\ndoes.  Unlike ext4_handle_error(), which avoids SB_RDONLY because it\nwould need s_umount, the sb here is still inside ext4_fill_super() and\nnot published, so nothing can observe it.\n\nThe failure is not clean either: the replay handlers passing a NULL\nhandle (ext4_fc_replay_inode(), _add_range(), _del_range()) never hit\next4_journal_check_start() and do write, leaving a partially applied\nfast commit behind.\n\nReproducer, where the unlink only ever reaches the fast commit area:\n\n  mke2fs -q -F -t ext4 -O fast_commit -b 4096 /dev/sdb3 262144\n  mount /dev/sdb3 /mnt\n  dd if=/dev/zero of=/mnt/victim bs=4k count=1 conv=fsync\n  sync                          # victim now in a full commit\n  rm /mnt/victim\n  dd if=/dev/zero of=/mnt/trigger bs=4k count=1 conv=fsync\n  <crash, or snapshot the device while mounted and write it back>\n  mount -o ro /dev/sdb3 /mnt\n\nWithout this patch that mount fails; with it recovery completes and\nvictim is gone, i.e. the UNLINK record was really replayed.","Type":"Description","Title":"ext4: fix fast commit replay failing on a read-only mount"}]}}}