{"id":"CVE-2026-139197","state":"PUBLISHED","title":"ceph: fix writeback_count leak when a bounce page allocation fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix writeback_count leak when a bounce page allocation fails\n\nceph_process_folio_batch() calls is_write_congestion_happened(), which\nincrements fsc->writeback_count, before calling\nmove_dirty_folio_in_page_array(). If the fscrypt bounce page allocation\nthere fails, the folio is redirtied and never makes it into the page\narray, but the count is never dropped.\n\nwrite_congested is only cleared when a decrement falls below\nCONGESTION_OFF_THRESH, so the leaked counts set congestion early and\neventually leave write_congested set for good. Every WB_SYNC_NONE\nwriteback then returns 0 and background writeback stops entirely.\n\nBump the count only once the folio is in the page array.","publishedAt":"2026-11-30T13:32:28.645Z","updatedAt":"2026-11-30T13:32:28.645Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d55207717ded95c8f2760a30e93319fa313186e6","status":"affected","lessThan":"ba7bf5c68a7876f9ee6b1eabf3e55a37cf37109b","versionType":"git"},{"version":"d55207717ded95c8f2760a30e93319fa313186e6","status":"affected","lessThan":"69d3db3408740bdab99419b2cf65251d861ea7b5","versionType":"git"},{"version":"d55207717ded95c8f2760a30e93319fa313186e6","status":"affected","lessThan":"11fdd8b32d25d3f79b611c35638a8a385ce30501","versionType":"git"},{"version":"d55207717ded95c8f2760a30e93319fa313186e6","status":"affected","lessThan":"7807710d88ad03e7ca9b5f79f518f040db2a4e09","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/addr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/addr.c"]}],"references":["https://git.kernel.org/stable/c/ba7bf5c68a7876f9ee6b1eabf3e55a37cf37109b","https://git.kernel.org/stable/c/69d3db3408740bdab99419b2cf65251d861ea7b5","https://git.kernel.org/stable/c/11fdd8b32d25d3f79b611c35638a8a385ce30501","https://git.kernel.org/stable/c/7807710d88ad03e7ca9b5f79f518f040db2a4e09"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139197.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139197","state":"PUBLISHED","datePublished":"2026-11-30T13:32:28.645Z","dateUpdated":"2026-11-30T13:32:28.645Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.919Z"},"containers":{"cna":{"title":"ceph: fix writeback_count leak when a bounce page allocation fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix writeback_count leak when a bounce page allocation fails\n\nceph_process_folio_batch() calls is_write_congestion_happened(), which\nincrements fsc->writeback_count, before calling\nmove_dirty_folio_in_page_array(). If the fscrypt bounce page allocation\nthere fails, the folio is redirtied and never makes it into the page\narray, but the count is never dropped.\n\nwrite_congested is only cleared when a decrement falls below\nCONGESTION_OFF_THRESH, so the leaked counts set congestion early and\neventually leave write_congested set for good. Every WB_SYNC_NONE\nwriteback then returns 0 and background writeback stops entirely.\n\nBump the count only once the folio is in the page array."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d55207717ded95c8f2760a30e93319fa313186e6","status":"affected","lessThan":"ba7bf5c68a7876f9ee6b1eabf3e55a37cf37109b","versionType":"git"},{"version":"d55207717ded95c8f2760a30e93319fa313186e6","status":"affected","lessThan":"69d3db3408740bdab99419b2cf65251d861ea7b5","versionType":"git"},{"version":"d55207717ded95c8f2760a30e93319fa313186e6","status":"affected","lessThan":"11fdd8b32d25d3f79b611c35638a8a385ce30501","versionType":"git"},{"version":"d55207717ded95c8f2760a30e93319fa313186e6","status":"affected","lessThan":"7807710d88ad03e7ca9b5f79f518f040db2a4e09","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/addr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/addr.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ba7bf5c68a7876f9ee6b1eabf3e55a37cf37109b"},{"url":"https://git.kernel.org/stable/c/69d3db3408740bdab99419b2cf65251d861ea7b5"},{"url":"https://git.kernel.org/stable/c/11fdd8b32d25d3f79b611c35638a8a385ce30501"},{"url":"https://git.kernel.org/stable/c/7807710d88ad03e7ca9b5f79f518f040db2a4e09"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:28.645Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}