# CVE-2026-142842: ext4: fix fast commit replay failing on a read-only mount

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:20:53.175Z
- **Modified:** 2026-12-03T04:18:20.557Z

## Who should check

- Anyone running Linux \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 4555a9e500651404debb04b38ba64b7dfad3b448; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< ff9251fd6c71b2654744ad5c6f64d29c77cd29cd; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 70caf777b43f6272f88a41941b0c592a0fea9e04; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 0772df264e36c86e4e293d2daef7cac1b7fc549b; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 9e7b9a6cb744844559911a5c8ff6e627aa9de9c6; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< e1a881ea4674876721cab97680d1d8308f90e9a4
- Anyone running Linux 5.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

ext4: fix fast commit replay failing on a read-only mount

A filesystem with fast\_commit that needs recovery cannot be mounted
read-only:

  EXT4-fs (dm-0): INFO: recovery required on readonly filesystem
  EXT4-fs (dm-0): write access will be enabled during recovery
  WARNING: CPU: 22 PID: 5544 at fs/ext4/ext4\_jbd2.c:73
   ext4\_journal\_check\_start
   \_\_ext4\_journal\_start\_sb
   \_\_ext4\_unlink
   ext4\_fc\_replay
   do\_one\_pass
   jbd2\_journal\_recover
   jbd2\_journal\_load
   \_\_ext4\_fill\_super
  JBD2: journal recovery failed
  EXT4-fs (dm-0): error loading journal

Fast commit replay runs ext4 metadata operations instead of writing
blocks through the buffer cache: ext4\_fc\_replay\_{unlink,link,create}()
reach \_\_ext4\_unlink() and \_\_ext4\_link(), which start a handle.
ext4\_journal\_check\_start() returns -EROFS on a read-only sb, and as
that is not -ENOENT it propagates out of jbd2\_journal\_recover() and
kills the whole recovery.  The EXT4\_FC\_REPLAY check that would hand
out a no-journal handle sits after the sb\_rdonly() test, so replay can
never complete read-only.

ext4\_load\_journal() has already promised that write access will be
enabled during recovery, so make that true for the superblock as well:
clear SB\_RDONLY across jbd2\_journal\_load() when recovery is needed on a
read-only mount and the devices are writable, as ext4\_orphan\_cleanup()
does.  Unlike ext4\_handle\_error(), which avoids SB\_RDONLY because it
would need s\_umount, the sb here is still inside ext4\_fill\_super() and
not published, so nothing can observe it.

The failure is not clean either: the replay handlers passing a NULL
handle (ext4\_fc\_replay\_inode(), \_add\_range(), \_del\_range()) never hit
ext4\_journal\_check\_start() and do write, leaving a partially applied
fast commit behind.

Reproducer, where the unlink only ever reaches the fast commit area:

  mke2fs -q -F -t ext4 -O fast\_commit -b 4096 /dev/sdb3 262144
  mount /dev/sdb3 /mnt
  dd if=/dev/zero of=/mnt/victim bs=4k count=1 conv=fsync
  sync                          \# victim now in a full commit
  rm /mnt/victim
  dd if=/dev/zero of=/mnt/trigger bs=4k count=1 conv=fsync
  \<crash, or snapshot the device while mounted and write it back\>
  mount -o ro /dev/sdb3 /mnt

Without this patch that mount fails; with it recovery completes and
victim is gone, i.e. the UNLINK record was really replayed.

## Affected and fixed versions

- Linux: \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 4555a9e500651404debb04b38ba64b7dfad3b448; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< ff9251fd6c71b2654744ad5c6f64d29c77cd29cd; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 70caf777b43f6272f88a41941b0c592a0fea9e04; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 0772df264e36c86e4e293d2daef7cac1b7fc549b; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 9e7b9a6cb744844559911a5c8ff6e627aa9de9c6; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< e1a881ea4674876721cab97680d1d8308f90e9a4 (cvelist)
- Linux: 5.10 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142842. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142842.md
Affected: Linux >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 4555a9e500651404debb04b38ba64b7dfad3b448; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < ff9251fd6c71b2654744ad5c6f64d29c77cd29cd; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 70caf777b43f6272f88a41941b0c592a0fea9e04; >= 8016e29f4362e285f0f7e38…
Fixed in: Linux 4555a9e500651404debb04b38ba64b7dfad3b448, Linux 70caf777b43f6272f88a41941b0c592a0fea9e04, Linux 8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f, Linux 0772df264e36c86e4e293d2daef7cac1b7fc549b, Linux 9e7b9a6cb744844559911a5c8ff6e627aa9de9c6, Linux 33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142842 being exploited?

There is no confirmed exploitation: CVE-2026-142842 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142842?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142842?

Linux \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 4555a9e500651404debb04b38ba64b7dfad3b448; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< ff9251fd6c71b2654744ad5c6f64d29c77cd29cd; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 70caf777b43f6272f88a41941b0c592a0fea9e04; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 0772df264e36c86e4e293d2daef7cac1b7fc549b; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 9e7b9a6cb744844559911a5c8ff6e627aa9de9c6; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< e1a881ea4674876721cab97680d1d8308f90e9a4; Linux 5.10.

### Is there a fix for CVE-2026-142842?

Yes. Fixed in Linux 4555a9e500651404debb04b38ba64b7dfad3b448, Linux 70caf777b43f6272f88a41941b0c592a0fea9e04, Linux 8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f, Linux 0772df264e36c86e4e293d2daef7cac1b7fc549b, Linux 9e7b9a6cb744844559911a5c8ff6e627aa9de9c6, Linux 33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142842?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/4555a9e500651404debb04b38ba64b7dfad3b448>
- other: <https://git.kernel.org/stable/c/ff9251fd6c71b2654744ad5c6f64d29c77cd29cd>
- other: <https://git.kernel.org/stable/c/70caf777b43f6272f88a41941b0c592a0fea9e04>
- other: <https://git.kernel.org/stable/c/8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f>
- other: <https://git.kernel.org/stable/c/0772df264e36c86e4e293d2daef7cac1b7fc549b>
- other: <https://git.kernel.org/stable/c/9e7b9a6cb744844559911a5c8ff6e627aa9de9c6>
- other: <https://git.kernel.org/stable/c/33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9>
- other: <https://git.kernel.org/stable/c/e1a881ea4674876721cab97680d1d8308f90e9a4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142842>

HTML: <https://flawdb.com/CVE-2026-142842> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142842>
