# CVE-2026-90418: nilfs2: fix BUG in nilfs_copy_dirty_pages() on dirty state mismatch

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-09-17T16:09:43.223Z
- Modified: 2026-10-30T13:20:52.760Z
- Assigned by: Linux

## Description

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

nilfs2: fix BUG in nilfs_copy_dirty_pages() on dirty state mismatch

Syzbot reported a kernel BUG triggered within nilfs_copy_dirty_pages(),
which copies dirty DAT file folios/pages to its shadow page cache.  The
BUG occurs when a retrieved dirty folio/page unexpectedly loses its
'dirty' status.

This issue arises because, since the commit referenced below, the 'dirty'
flag of a folio/page can be cleared asynchronously after the filesystem
detects metadata corruption and transitions to read-only mode.

Resolve the issue by returning an -EROFS error if the filesystem has
transitioned to read-only mode.  Also change the behavior to issue a
kernel warning only once instead of triggering a kernel BUG when this
unexpected 'dirty' state is detected while the filesystem is not in
read-only mode.

(As written by CVE List.)

## Affected

- Linux Linux: from 8c26c4e2694a163d525976e804d81cd955bbb40c before 6879c603a8d07af82da83768cc2342a11bd444e5; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 5166a21b12f549774f2983fa86d2526ea9e66ace; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 4e1f21e7540b25d83f86b50780836ed7d2afcc93; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 3904fb0ee741ebbbc27ec8f50a9bb6cd31e8af05; from 8c26c4e2694a163d525976e804d81cd955bbb40c before f181155baf0c93a74ebe804c6cecbe970e78ee9e; from 8c26c4e2694a163d525976e804d81cd955bbb40c before 66f4ad3ce158902e5f98afea93189972ed8750c2; 3.10 (not affected: before 3.10; from 6.1.191 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.110 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-90418](https://www.cve.org/CVERecord?id=CVE-2026-90418), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-90418](https://nvd.nist.gov/vuln/detail/CVE-2026-90418), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-90418 · Whole record: https://cve.day/CVE-2026-90418.json · Rebuilt by cve.day 2026-11-25T22:59:39.411Z
