PT-2026-166565

CVE-2026-142842

·

Publicado

2026-12-03

·

Atualizado

2026-12-03

Descrição por

Pontuação
N/A
Não disponível

Não há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.

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.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾