{"id":"CVE-2026-90418","state":"PUBLISHED","title":"nilfs2: fix BUG in nilfs_copy_dirty_pages() on dirty state mismatch","description":"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.","publishedAt":"2026-09-17T16:09:43.223Z","updatedAt":"2026-10-30T12:35:33.513Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"6879c603a8d07af82da83768cc2342a11bd444e5","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"5166a21b12f549774f2983fa86d2526ea9e66ace","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"4e1f21e7540b25d83f86b50780836ed7d2afcc93","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"3904fb0ee741ebbbc27ec8f50a9bb6cd31e8af05","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"f181155baf0c93a74ebe804c6cecbe970e78ee9e","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"66f4ad3ce158902e5f98afea93189972ed8750c2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/page.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.10","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/page.c"]}],"references":["https://git.kernel.org/stable/c/6879c603a8d07af82da83768cc2342a11bd444e5","https://git.kernel.org/stable/c/5166a21b12f549774f2983fa86d2526ea9e66ace","https://git.kernel.org/stable/c/4e1f21e7540b25d83f86b50780836ed7d2afcc93","https://git.kernel.org/stable/c/3904fb0ee741ebbbc27ec8f50a9bb6cd31e8af05","https://git.kernel.org/stable/c/f181155baf0c93a74ebe804c6cecbe970e78ee9e","https://git.kernel.org/stable/c/66f4ad3ce158902e5f98afea93189972ed8750c2"],"weaknesses":[],"ingestedAt":"2026-10-30T12:54:04.478Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90418.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90418","state":"PUBLISHED","datePublished":"2026-09-17T16:09:43.223Z","dateUpdated":"2026-10-30T12:35:33.513Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.813Z"},"containers":{"cna":{"title":"nilfs2: fix BUG in nilfs_copy_dirty_pages() on dirty state mismatch","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"6879c603a8d07af82da83768cc2342a11bd444e5","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"5166a21b12f549774f2983fa86d2526ea9e66ace","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"4e1f21e7540b25d83f86b50780836ed7d2afcc93","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"3904fb0ee741ebbbc27ec8f50a9bb6cd31e8af05","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"f181155baf0c93a74ebe804c6cecbe970e78ee9e","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"66f4ad3ce158902e5f98afea93189972ed8750c2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/page.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.10","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/page.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6879c603a8d07af82da83768cc2342a11bd444e5"},{"url":"https://git.kernel.org/stable/c/5166a21b12f549774f2983fa86d2526ea9e66ace"},{"url":"https://git.kernel.org/stable/c/4e1f21e7540b25d83f86b50780836ed7d2afcc93"},{"url":"https://git.kernel.org/stable/c/3904fb0ee741ebbbc27ec8f50a9bb6cd31e8af05"},{"url":"https://git.kernel.org/stable/c/f181155baf0c93a74ebe804c6cecbe970e78ee9e"},{"url":"https://git.kernel.org/stable/c/66f4ad3ce158902e5f98afea93189972ed8750c2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:35:33.513Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}