{"id":"CVE-2023-53337","state":"PUBLISHED","title":"nilfs2: do not write dirty data after degenerating to read-only","description":"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.","publishedAt":"2025-09-17T14:56:31.582Z","updatedAt":"2026-05-11T19:42:59.822Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"bd89073fc7a5d03b1d06b372addbe405e5a925f4","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"e9c5412c5972124776c1b873533eb39e287a4dfa","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"4569a292a84e340e97d178898ad1cfe1a3080a61","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"7c3e662048053802f6b0db3a78e97f4e1f7edc4f","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"13f73ef77baa4764dc1ca4fcbae9cade05b83866","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"a73201c607d8e506358d60aafddda4246bdd9350","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"4005cec6847c06ee191583270b7cdd7e696543cc","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"55f7810632f993cff622a0ddbc7c865892294b61","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"28a65b49eb53e172d23567005465019658bfdb4d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/segment.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.10","versionType":"semver"},{"version":"4.14.315","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.283","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.243","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.180","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.111","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.28","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.15","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.2","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/segment.c"]}],"references":["https://git.kernel.org/stable/c/bd89073fc7a5d03b1d06b372addbe405e5a925f4","https://git.kernel.org/stable/c/e9c5412c5972124776c1b873533eb39e287a4dfa","https://git.kernel.org/stable/c/4569a292a84e340e97d178898ad1cfe1a3080a61","https://git.kernel.org/stable/c/7c3e662048053802f6b0db3a78e97f4e1f7edc4f","https://git.kernel.org/stable/c/13f73ef77baa4764dc1ca4fcbae9cade05b83866","https://git.kernel.org/stable/c/a73201c607d8e506358d60aafddda4246bdd9350","https://git.kernel.org/stable/c/4005cec6847c06ee191583270b7cdd7e696543cc","https://git.kernel.org/stable/c/55f7810632f993cff622a0ddbc7c865892294b61","https://git.kernel.org/stable/c/28a65b49eb53e172d23567005465019658bfdb4d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53337.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53337","state":"PUBLISHED","datePublished":"2025-09-17T14:56:31.582Z","dateUpdated":"2026-05-11T19:42:59.822Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-16T16:08:59.565Z"},"containers":{"cna":{"title":"nilfs2: do not write dirty data after degenerating to read-only","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"bd89073fc7a5d03b1d06b372addbe405e5a925f4","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"e9c5412c5972124776c1b873533eb39e287a4dfa","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"4569a292a84e340e97d178898ad1cfe1a3080a61","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"7c3e662048053802f6b0db3a78e97f4e1f7edc4f","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"13f73ef77baa4764dc1ca4fcbae9cade05b83866","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"a73201c607d8e506358d60aafddda4246bdd9350","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"4005cec6847c06ee191583270b7cdd7e696543cc","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"55f7810632f993cff622a0ddbc7c865892294b61","versionType":"git"},{"version":"8c26c4e2694a163d525976e804d81cd955bbb40c","status":"affected","lessThan":"28a65b49eb53e172d23567005465019658bfdb4d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/segment.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.10","versionType":"semver"},{"version":"4.14.315","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.283","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.243","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.180","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.111","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.28","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.15","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.2","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/segment.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/bd89073fc7a5d03b1d06b372addbe405e5a925f4"},{"url":"https://git.kernel.org/stable/c/e9c5412c5972124776c1b873533eb39e287a4dfa"},{"url":"https://git.kernel.org/stable/c/4569a292a84e340e97d178898ad1cfe1a3080a61"},{"url":"https://git.kernel.org/stable/c/7c3e662048053802f6b0db3a78e97f4e1f7edc4f"},{"url":"https://git.kernel.org/stable/c/13f73ef77baa4764dc1ca4fcbae9cade05b83866"},{"url":"https://git.kernel.org/stable/c/a73201c607d8e506358d60aafddda4246bdd9350"},{"url":"https://git.kernel.org/stable/c/4005cec6847c06ee191583270b7cdd7e696543cc"},{"url":"https://git.kernel.org/stable/c/55f7810632f993cff622a0ddbc7c865892294b61"},{"url":"https://git.kernel.org/stable/c/28a65b49eb53e172d23567005465019658bfdb4d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:42:59.822Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"4.14.315"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"4.19.283"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"5.4.243"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"5.10.180"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"5.15.111"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.1.28"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.2.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2023-53337","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-01-14T18:37:55.787557Z"}}}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T18:43:01.138Z"}}]}}}