{"id":"CVE-2023-53337","aliases":["CVE-2023-53337"],"related":[],"kind":"vulnerability","state":"published","title":"nilfs2: do not write dirty data after degenerating to read-only","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: do not write dirty data after degenerating to read-only\n\nAccording to syzbot's report, mark_buffer_dirty() called from\nnilfs_segctor_do_construct() outputs a warning with some patterns after\nnilfs2 detects metadata corruption and degrades to read-only mode.\n\nAfter such read-only degeneration, page cache data may be cleared through\nnilfs_clear_dirty_page() which may also clear the uptodate flag for their\nbuffer heads.  However, even after the degeneration, log writes are still\nperformed by unmount processing etc., which causes mark_buffer_dirty() to\nbe called for buffer heads without the \"uptodate\" flag and causes the\nwarning.\n\nSince any writes should not be done to a read-only file system in the\nfirst place, this fixes the warning in mark_buffer_dirty() by letting\nnilfs_segctor_do_construct() abort early if in read-only mode.\n\nThis also changes the retry check of nilfs_segctor_write_out() to avoid\nunnecessary log write retries if it detects -EROFS that\nnilfs_segctor_do_construct() returned.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: do not write dirty data after degenerating to read-only\n\nAccording to syzbot's report, mark_buffer_dirty() called from\nnilfs_segctor_do_construct() outputs a warning with some patterns after\nnilfs2 detects metadata corruption and degrades to read-only mode.\n\nAfter such read-only degeneration, page cache data may be cleared through\nnilfs_clear_dirty_page() which may also clear the uptodate flag for their\nbuffer heads.  However, even after the degeneration, log writes are still\nperformed by unmount processing etc., which causes mark_buffer_dirty() to\nbe called for buffer heads without the \"uptodate\" flag and causes the\nwarning.\n\nSince any writes should not be done to a read-only file system in the\nfirst place, this fixes the warning in mark_buffer_dirty() by letting\nnilfs_segctor_do_construct() abort early if in read-only mode.\n\nThis also changes the retry check of nilfs_segctor_write_out() to avoid\nunnecessary log write retries if it detects -EROFS that\nnilfs_segctor_do_construct() returned.","source":"cvelist"}],"published":"2025-09-17T14:56:31.582Z","modified":"2026-06-17T06:44:55.900Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"bd89073fc7a5d03b1d06b372addbe405e5a925f4","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"e9c5412c5972124776c1b873533eb39e287a4dfa","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"4569a292a84e340e97d178898ad1cfe1a3080a61","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"7c3e662048053802f6b0db3a78e97f4e1f7edc4f","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"13f73ef77baa4764dc1ca4fcbae9cade05b83866","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"a73201c607d8e506358d60aafddda4246bdd9350","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"4005cec6847c06ee191583270b7cdd7e696543cc","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"55f7810632f993cff622a0ddbc7c865892294b61","status":"affected"},{"type":"git","introduced":"8c26c4e2694a163d525976e804d81cd955bbb40c","fixed":"28a65b49eb53e172d23567005465019658bfdb4d","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":"4.14.315","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.283","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.243","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.180","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.111","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.28","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.15","lastAffected":"6.2.*","status":"unaffected"},{"type":"semver","introduced":"6.3.2","lastAffected":"6.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.4","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.14.315"},{"status":"affected","introduced":"4.15","fixed":"4.19.283"},{"status":"affected","introduced":"4.20","fixed":"5.4.243"},{"status":"affected","introduced":"5.5","fixed":"5.10.180"},{"status":"affected","introduced":"5.11","fixed":"5.15.111"},{"status":"affected","introduced":"5.16","fixed":"6.1.28"},{"status":"affected","introduced":"6.2","fixed":"6.2.15"},{"status":"affected","introduced":"6.3","fixed":"6.3.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bd89073fc7a5d03b1d06b372addbe405e5a925f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9c5412c5972124776c1b873533eb39e287a4dfa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4569a292a84e340e97d178898ad1cfe1a3080a61","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c3e662048053802f6b0db3a78e97f4e1f7edc4f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13f73ef77baa4764dc1ca4fcbae9cade05b83866","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a73201c607d8e506358d60aafddda4246bdd9350","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4005cec6847c06ee191583270b7cdd7e696543cc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/55f7810632f993cff622a0ddbc7c865892294b61","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/28a65b49eb53e172d23567005465019658bfdb4d","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T18:37:55.787Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53337","url":"https://www.cve.org/CVERecord?id=CVE-2023-53337","licence":"CVE Terms of Use","modified":"2026-05-11T19:42:59.822Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53337","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53337","licence":"Public domain","modified":"2026-06-17T06:44:55.900Z"}],"updatedAt":"2026-11-25T22:58:34.838Z","epss":{"score":0.00216,"percentile":0.12778,"date":"2026-12-01T12:00:22.000Z"}}