{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142842","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.332Z","datePublished":"2026-12-03T03:20:53.175Z","dateUpdated":"2026-12-03T03:20:53.175Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-03T03:20:53.175Z"},"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/super.c"],"versions":[{"version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","lessThan":"4555a9e500651404debb04b38ba64b7dfad3b448","status":"affected","versionType":"git"},{"version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","lessThan":"ff9251fd6c71b2654744ad5c6f64d29c77cd29cd","status":"affected","versionType":"git"},{"version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","lessThan":"70caf777b43f6272f88a41941b0c592a0fea9e04","status":"affected","versionType":"git"},{"version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","lessThan":"8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f","status":"affected","versionType":"git"},{"version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","lessThan":"0772df264e36c86e4e293d2daef7cac1b7fc549b","status":"affected","versionType":"git"},{"version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","lessThan":"9e7b9a6cb744844559911a5c8ff6e627aa9de9c6","status":"affected","versionType":"git"},{"version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","lessThan":"33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9","status":"affected","versionType":"git"},{"version":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","lessThan":"e1a881ea4674876721cab97680d1d8308f90e9a4","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/super.c"],"versions":[{"version":"5.10","status":"affected"},{"version":"0","lessThan":"5.10","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"7.4-rc1"}]}]}],"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"}}}}