{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138937","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.904Z","datePublished":"2026-11-30T13:26:22.132Z","dateUpdated":"2026-11-30T13:26:22.132Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:26:22.132Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: clear dirty flag on bdev buffers on log write failure\n\nSince the commit referenced in the Fixes tag stopped directly calling\ninode_attach_wb(), a dirty flag is set on buffers (with\nmark_buffer_dirty()) allocated to the backing device for segment\nsummaries and the super root block during log writes.\n\nWhile this dirty flag is cleared upon a successful log write, it remains\nuncleared if the log write fails.\n\nConsequently, when a log write fails, these backing device buffers are\nleft in an inconsistent state where their uptodate flag and the dirty\nflag of the containing page/folio are cleared, but the buffer's dirty\nflag remains as stale garbage.\n\nParticularly when the block size is smaller than the page size, if other\nbuffers on the same page/folio become dirty, this buffer unexpectedly\nbecomes a target for writeback again.  As a result, if the block is\nlater reused for other data or metadata, that contents risks being\ncorrupted.\n\nFix this issue by calling clear_buffer_dirty() for the backing device\nbuffers when aborting log writes in nilfs_abort_logs()."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/segment.c"],"versions":[{"version":"68142cb628f75a22f12fde9f5c0c69dfc1bdcf47","lessThan":"a8377f82a969fe5e2230306b14dcbcc74086d9c2","status":"affected","versionType":"git"},{"version":"68142cb628f75a22f12fde9f5c0c69dfc1bdcf47","lessThan":"1a84e432d44262c36ae3dcc2aa6331a879ba1612","status":"affected","versionType":"git"},{"version":"68142cb628f75a22f12fde9f5c0c69dfc1bdcf47","lessThan":"4dfa8994b7082ee56deccbc33ba508089d420f6f","status":"affected","versionType":"git"},{"version":"68142cb628f75a22f12fde9f5c0c69dfc1bdcf47","lessThan":"6faad04a002603d800134398fcd042b403b32d35","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nilfs2/segment.c"],"versions":[{"version":"6.11","status":"affected"},{"version":"0","lessThan":"6.11","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/a8377f82a969fe5e2230306b14dcbcc74086d9c2"},{"url":"https://git.kernel.org/stable/c/1a84e432d44262c36ae3dcc2aa6331a879ba1612"},{"url":"https://git.kernel.org/stable/c/4dfa8994b7082ee56deccbc33ba508089d420f6f"},{"url":"https://git.kernel.org/stable/c/6faad04a002603d800134398fcd042b403b32d35"}],"title":"nilfs2: clear dirty flag on bdev buffers on log write failure","x_generator":{"engine":"bippy-1.2.0"}}}}