{"api_version":"1","generated_at":"2026-12-02T14:37:52+00:00","cve":"CVE-2026-139199","urls":{"html":"https://cve.report/CVE-2026-139199","api":"https://cve.report/api/cve/CVE-2026-139199.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139199","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139199"},"summary":{"title":"ceph: fix error handling when the OSD client is stopping in ceph_submit_write()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix error handling when the OSD client is stopping in ceph_submit_write()\n\nWhen ceph_inc_osd_stopping_blocker() fails, ceph_submit_write()\nredirties and unlocks the folios remaining in ceph_wbc->fbatch.\nHowever, none of those folios are locked at this point: locked folios\nwere moved to ceph_wbc->pages[] and removed from the fbatch by\nceph_process_folio_batch(). Unlocking them triggers\nVM_BUG_ON_FOLIO(!folio_test_locked(folio)) in folio_unlock(), or\nunlocks a folio locked by another task.\n\nThis error path also returns -EIO without fully cleaning up the folios in\nceph_wbc->pages[]: their references are never dropped, fscrypt bounce\npages are never freed, the writeback congestion count is never\ndecremented, and the pages array is leaked. ceph_wbc->locked_pages is\nalso left non-zero, so ceph_writepages_start() loops back around and\nhits BUG_ON(ceph_wbc.locked_pages).\n\nLeave the fbatch folios alone, as ceph_writepages_start() drops their\nreferences when releasing the batch, and unwind ceph_wbc->pages[] the\nsame way writepages_finish() would have. Abort writeback in\nceph_writepages_start() instead of continuing, matching the handling\nof ceph_inc_osd_stopping_blocker() failure on entry, as the OSD\nclient is being torn down and further writeback cannot make progress.\n\nAn LLM was used to verify that the cleanup was comprehensive, and\nsuggested aborting the writeback instead of continuing.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:39","updated_at":"2026-11-30 14:18:39"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/1dc76baaf781f6ece49383611788028e73b23fea","name":"https://git.kernel.org/stable/c/1dc76baaf781f6ece49383611788028e73b23fea","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ad67b498de17b709f050d7ebf84749b1fc6a242d","name":"https://git.kernel.org/stable/c/ad67b498de17b709f050d7ebf84749b1fc6a242d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/323d7bbd07594edcc4095c5fd5c00a7f81bb4ac1","name":"https://git.kernel.org/stable/c/323d7bbd07594edcc4095c5fd5c00a7f81bb4ac1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/378d756c3596f3773fb993b3672ac15619401bba","name":"https://git.kernel.org/stable/c/378d756c3596f3773fb993b3672ac15619401bba","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139199","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139199","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6f58fab6f7b4f66970ba8f3238bff15792779b03 378d756c3596f3773fb993b3672ac15619401bba git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1551ec61dc551dab1bb40c516a5a096607aff774 1dc76baaf781f6ece49383611788028e73b23fea git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1551ec61dc551dab1bb40c516a5a096607aff774 323d7bbd07594edcc4095c5fd5c00a7f81bb4ac1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1551ec61dc551dab1bb40c516a5a096607aff774 ad67b498de17b709f050d7ebf84749b1fc6a242d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12.114 6.12.119 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ceph/addr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"378d756c3596f3773fb993b3672ac15619401bba","status":"affected","version":"6f58fab6f7b4f66970ba8f3238bff15792779b03","versionType":"git"},{"lessThan":"1dc76baaf781f6ece49383611788028e73b23fea","status":"affected","version":"1551ec61dc551dab1bb40c516a5a096607aff774","versionType":"git"},{"lessThan":"323d7bbd07594edcc4095c5fd5c00a7f81bb4ac1","status":"affected","version":"1551ec61dc551dab1bb40c516a5a096607aff774","versionType":"git"},{"lessThan":"ad67b498de17b709f050d7ebf84749b1fc6a242d","status":"affected","version":"1551ec61dc551dab1bb40c516a5a096607aff774","versionType":"git"},{"lessThan":"6.12.119","status":"affected","version":"6.12.114","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ceph/addr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.15"},{"lessThan":"6.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.12.114","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix error handling when the OSD client is stopping in ceph_submit_write()\n\nWhen ceph_inc_osd_stopping_blocker() fails, ceph_submit_write()\nredirties and unlocks the folios remaining in ceph_wbc->fbatch.\nHowever, none of those folios are locked at this point: locked folios\nwere moved to ceph_wbc->pages[] and removed from the fbatch by\nceph_process_folio_batch(). Unlocking them triggers\nVM_BUG_ON_FOLIO(!folio_test_locked(folio)) in folio_unlock(), or\nunlocks a folio locked by another task.\n\nThis error path also returns -EIO without fully cleaning up the folios in\nceph_wbc->pages[]: their references are never dropped, fscrypt bounce\npages are never freed, the writeback congestion count is never\ndecremented, and the pages array is leaked. ceph_wbc->locked_pages is\nalso left non-zero, so ceph_writepages_start() loops back around and\nhits BUG_ON(ceph_wbc.locked_pages).\n\nLeave the fbatch folios alone, as ceph_writepages_start() drops their\nreferences when releasing the batch, and unwind ceph_wbc->pages[] the\nsame way writepages_finish() would have. Abort writeback in\nceph_writepages_start() instead of continuing, matching the handling\nof ceph_inc_osd_stopping_blocker() failure on entry, as the OSD\nclient is being torn down and further writeback cannot make progress.\n\nAn LLM was used to verify that the cleanup was comprehensive, and\nsuggested aborting the writeback instead of continuing."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:29.748Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/378d756c3596f3773fb993b3672ac15619401bba"},{"url":"https://git.kernel.org/stable/c/1dc76baaf781f6ece49383611788028e73b23fea"},{"url":"https://git.kernel.org/stable/c/323d7bbd07594edcc4095c5fd5c00a7f81bb4ac1"},{"url":"https://git.kernel.org/stable/c/ad67b498de17b709f050d7ebf84749b1fc6a242d"}],"title":"ceph: fix error handling when the OSD client is stopping in ceph_submit_write()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139199","datePublished":"2026-11-30T13:32:29.748Z","dateReserved":"2026-11-30T13:22:15.920Z","dateUpdated":"2026-11-30T13:32:29.748Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:39","lastModifiedDate":"2026-11-30 14:18:39","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139199","Ordinal":"1","Title":"ceph: fix error handling when the OSD client is stopping in ceph","CVE":"CVE-2026-139199","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139199","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix error handling when the OSD client is stopping in ceph_submit_write()\n\nWhen ceph_inc_osd_stopping_blocker() fails, ceph_submit_write()\nredirties and unlocks the folios remaining in ceph_wbc->fbatch.\nHowever, none of those folios are locked at this point: locked folios\nwere moved to ceph_wbc->pages[] and removed from the fbatch by\nceph_process_folio_batch(). Unlocking them triggers\nVM_BUG_ON_FOLIO(!folio_test_locked(folio)) in folio_unlock(), or\nunlocks a folio locked by another task.\n\nThis error path also returns -EIO without fully cleaning up the folios in\nceph_wbc->pages[]: their references are never dropped, fscrypt bounce\npages are never freed, the writeback congestion count is never\ndecremented, and the pages array is leaked. ceph_wbc->locked_pages is\nalso left non-zero, so ceph_writepages_start() loops back around and\nhits BUG_ON(ceph_wbc.locked_pages).\n\nLeave the fbatch folios alone, as ceph_writepages_start() drops their\nreferences when releasing the batch, and unwind ceph_wbc->pages[] the\nsame way writepages_finish() would have. Abort writeback in\nceph_writepages_start() instead of continuing, matching the handling\nof ceph_inc_osd_stopping_blocker() failure on entry, as the OSD\nclient is being torn down and further writeback cannot make progress.\n\nAn LLM was used to verify that the cleanup was comprehensive, and\nsuggested aborting the writeback instead of continuing.","Type":"Description","Title":"ceph: fix error handling when the OSD client is stopping in ceph"}]}}}