{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2"
            },
            {
              "fixed": "4555a9e500651404debb04b38ba64b7dfad3b448"
            },
            {
              "fixed": "ff9251fd6c71b2654744ad5c6f64d29c77cd29cd"
            },
            {
              "fixed": "70caf777b43f6272f88a41941b0c592a0fea9e04"
            },
            {
              "fixed": "8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f"
            },
            {
              "fixed": "0772df264e36c86e4e293d2daef7cac1b7fc549b"
            },
            {
              "fixed": "9e7b9a6cb744844559911a5c8ff6e627aa9de9c6"
            },
            {
              "fixed": "33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9"
            },
            {
              "fixed": "e1a881ea4674876721cab97680d1d8308f90e9a4"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.10.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142842.json"
  },
  "details": "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  \u003ccrash, or snapshot the device while mounted and write it back\u003e\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.",
  "id": "CVE-2026-142842",
  "modified": "2026-12-03T04:45:57.339989797Z",
  "published": "2026-12-03T03:20:53.175Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0772df264e36c86e4e293d2daef7cac1b7fc549b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/33a29d9cdf7dd89ed61295ce32ee4fe8db023ec9"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4555a9e500651404debb04b38ba64b7dfad3b448"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/70caf777b43f6272f88a41941b0c592a0fea9e04"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8fa085f4bc32dfa420e2b54c197d5cb2d5ee830f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9e7b9a6cb744844559911a5c8ff6e627aa9de9c6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e1a881ea4674876721cab97680d1d8308f90e9a4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ff9251fd6c71b2654744ad5c6f64d29c77cd29cd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142842.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142842"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ext4: fix fast commit replay failing on a read-only mount"
}