{"id":"CVE-2026-138937","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:54.390","lastModified":"2026-11-30T14:17:54.390","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/nilfs2/segment.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"68142cb628f75a22f12fde9f5c0c69dfc1bdcf47","lessThan":"a8377f82a969fe5e2230306b14dcbcc74086d9c2","versionType":"git","status":"affected"},{"version":"68142cb628f75a22f12fde9f5c0c69dfc1bdcf47","lessThan":"1a84e432d44262c36ae3dcc2aa6331a879ba1612","versionType":"git","status":"affected"},{"version":"68142cb628f75a22f12fde9f5c0c69dfc1bdcf47","lessThan":"4dfa8994b7082ee56deccbc33ba508089d420f6f","versionType":"git","status":"affected"},{"version":"68142cb628f75a22f12fde9f5c0c69dfc1bdcf47","lessThan":"6faad04a002603d800134398fcd042b403b32d35","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/nilfs2/segment.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.11","status":"affected"},{"version":"0","lessThan":"6.11","versionType":"semver","status":"unaffected"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/1a84e432d44262c36ae3dcc2aa6331a879ba1612","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4dfa8994b7082ee56deccbc33ba508089d420f6f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6faad04a002603d800134398fcd042b403b32d35","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a8377f82a969fe5e2230306b14dcbcc74086d9c2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}