{"id":"CVE-2026-90418","aliases":["CVE-2026-90418"],"related":[],"kind":"vulnerability","state":"published","title":"nilfs2: fix BUG in nilfs_copy_dirty_pages() on dirty state mismatch","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix BUG in nilfs_copy_dirty_pages() on dirty state mismatch\n\nSyzbot reported a kernel BUG triggered within nilfs_copy_dirty_pages(),\nwhich copies dirty DAT file folios/pages to its shadow page cache.  The\nBUG occurs when a retrieved dirty folio/page unexpectedly loses its\n'dirty' status.\n\nThis issue arises because, since the commit referenced below, the 'dirty'\nflag of a folio/page can be cleared asynchronously after the filesystem\ndetects metadata corruption and transitions to read-only mode.\n\nResolve the issue by returning an -EROFS error if the filesystem has\ntransitioned to read-only mode.  Also change the behavior to issue a\nkernel warning only once instead of triggering a kernel BUG when this\nunexpected 'dirty' state is detected while the filesystem is not in\nread-only mode.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix BUG in nilfs_copy_dirty_pages() on dirty state mismatch\n\nSyzbot reported a kernel BUG triggered within nilfs_copy_dirty_pages(),\nwhich copies dirty DAT file folios/pages to its shadow page cache.  The\nBUG occurs when a retrieved dirty folio/page unexpectedly loses its\n'dirty' status.\n\nThis issue arises because, since the commit referenced below, the 'dirty'\nflag of a folio/page can be cleared asynchronously after the filesystem\ndetects metadata corruption and transitions to read-only mode.\n\nResolve the issue by returning an -EROFS error if the filesystem has\ntransitioned to read-only mode.  Also change the behavior to issue a\nkernel warning only once instead of triggering a kernel BUG when this\nunexpected 'dirty' state is detected while the filesystem is not in\nread-only mode.","source":"cvelist"}],"published":"2026-09-17T16:09:43.223Z","modified":"2026-10-30T13:20:52.760Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"6879c603a8d07af82da83768cc2342a11bd444e5","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"5166a21b12f549774f2983fa86d2526ea9e66ace","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"4e1f21e7540b25d83f86b50780836ed7d2afcc93","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"3904fb0ee741ebbbc27ec8f50a9bb6cd31e8af05","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"f181155baf0c93a74ebe804c6cecbe970e78ee9e","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"66f4ad3ce158902e5f98afea93189972ed8750c2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.10","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6879c603a8d07af82da83768cc2342a11bd444e5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5166a21b12f549774f2983fa86d2526ea9e66ace","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e1f21e7540b25d83f86b50780836ed7d2afcc93","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3904fb0ee741ebbbc27ec8f50a9bb6cd31e8af05","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f181155baf0c93a74ebe804c6cecbe970e78ee9e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66f4ad3ce158902e5f98afea93189972ed8750c2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90418","url":"https://www.cve.org/CVERecord?id=CVE-2026-90418","licence":"CVE Terms of Use","modified":"2026-10-30T12:35:33.513Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90418","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90418","licence":"Public domain","modified":"2026-10-30T13:20:52.760Z"}],"updatedAt":"2026-11-25T22:59:39.411Z","epss":{"score":0.00173,"percentile":0.06975,"date":"2026-12-01T12:00:22.000Z"}}