{"id":"CVE-2023-53337","published":"2025-09-17T14:56:31Z","modified":"2026-05-11T19:42:59Z","title":"nilfs2: do not write dirty data after degenerating to read-only","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00216,"percentile":0.12256,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/bd89073fc7a5d03b1d06b372addbe405e5a925f4","tags":[]},{"url":"https://git.kernel.org/stable/c/e9c5412c5972124776c1b873533eb39e287a4dfa","tags":[]},{"url":"https://git.kernel.org/stable/c/4569a292a84e340e97d178898ad1cfe1a3080a61","tags":[]},{"url":"https://git.kernel.org/stable/c/7c3e662048053802f6b0db3a78e97f4e1f7edc4f","tags":[]},{"url":"https://git.kernel.org/stable/c/13f73ef77baa4764dc1ca4fcbae9cade05b83866","tags":[]},{"url":"https://git.kernel.org/stable/c/a73201c607d8e506358d60aafddda4246bdd9350","tags":[]},{"url":"https://git.kernel.org/stable/c/4005cec6847c06ee191583270b7cdd7e696543cc","tags":[]},{"url":"https://git.kernel.org/stable/c/55f7810632f993cff622a0ddbc7c865892294b61","tags":[]},{"url":"https://git.kernel.org/stable/c/28a65b49eb53e172d23567005465019658bfdb4d","tags":[]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":2.45},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < bd89073fc7a5d03b1d06b372addbe405e5a925f4",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < e9c5412c5972124776c1b873533eb39e287a4dfa",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 4569a292a84e340e97d178898ad1cfe1a3080a61",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 7c3e662048053802f6b0db3a78e97f4e1f7edc4f",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 13f73ef77baa4764dc1ca4fcbae9cade05b83866",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < a73201c607d8e506358d60aafddda4246bdd9350",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 4005cec6847c06ee191583270b7cdd7e696543cc",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 55f7810632f993cff622a0ddbc7c865892294b61",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 28a65b49eb53e172d23567005465019658bfdb4d"]},{"vendor":"Linux","product":"Linux","versions":["3.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-14T18:37:55.787557Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-59989","exploited":false,"provenance":"source"}}