{"vuln_id":"CVE-2026-89646","aliases":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix leaked inode reference on writeback abort at umount\n\nceph_dirty_folio() takes a wrbuffer claim on each newly dirtied folio: it\nbumps i_wrbuffer_ref (taking an ihold() on the 0->1 transition) and\nattaches the snap_context to folio->private.  That claim is released only\nby ceph_put_wrbuffer_cap_refs(), which for a submitted write runs from\nwritepages_finish().\n\nIn ceph_submit_write(), if ceph_inc_osd_stopping_blocker() fails -- which\nhappens during umount -- the request is aborted before submission: the\nalready-collected folios are only redirtied and unlocked, so\nwritepages_finish() never runs and the claim is leaked.\nredirty_page_for_writepage() -> folio_redirty_for_writepage() ->\nfilemap_dirty_folio() sets PG_dirty directly and does not go through\n->dirty_folio, so ceph_dirty_folio() is not re-entered to rebalance it.\nBecause every subsequent writeback also fails the osd_stopping_blocker,\ni_wrbuffer_ref never returns to 0, the ihold() is never dropped, and the\ninode cannot be evicted:\n\n  VFS: Busy inodes after unmount of ceph\n  kernel BUG at fs/super.c:650!\n\nRelease the orphaned claim in the abort path before redirtying, via\nceph_undo_wrbuffer_claim(): detach the snap_context, drop the wrbuffer\nreference (letting i_wrbuffer_ref reach 0 and iput() the inode), and drop\nthe snap_context reference -- i.e. do what writepages_finish() would have\ndone for these never-submitted folios.\n\nOnly the locked_pages entries are undone; folios still in the fbatch were\nnever dirty-cleared by this call (folio_clear_dirty_for_io() is the\nownership-transfer point, and a successful move NULLs the fbatch slot), so\nthey hold no claim this call owns.","published_at":"2026-09-11T20:19:50.477000Z","modified_at":"2026-11-23T08:17:20.637000Z","first_seen_at":"2026-11-23T08:34:13.960560Z","severity":"high","severity_source":"nvd","cvss_score":7.8,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00173,"epss_percentile":0.06829,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-89646"},"matched_alias":null,"items":[{"id":15272,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-89646: In the Linux kernel, the following vulnerability has been resolved: ceph: fix leaked inode reference on writeback abort at umount ceph_dirty_folio() takes a wr…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix leaked inode reference on writeback abort at umount\n\nceph_dirty_folio() takes a wrbuffer claim on each newly dirtied folio: it\nbumps i_wrbuffer_ref (taking an ihold() on the 0->1 transition) and\nattaches the snap_context to folio->private.  That claim is released only\nby ceph_put_wrbuffer_cap_refs(), which for a submitted write runs from\nwritepages_finish().\n\nIn ceph_submit_write(), if ceph_inc_osd_stopping_blocker() fails -- which\nhappens during umount -- the request is aborted before submission: the\nalready-collected folios are only redirtied and unlocked, so\nwritepages_finish() never runs and the claim is leaked.\nredirty_page_for_writepage() -> folio_redirty_for_writepage() ->\nfilemap_dirty_folio() sets PG_dirty directly and does not go through\n->dirty_folio, so ceph_dirty_folio() is not re-entered to rebalance it.\nBecause every subsequent writeback also fails the osd_stopping_blocker,\ni_wrbuffer_ref never returns to 0, the ihold() is never dropped, and the\ninode cannot be evicted:\n\n  VFS: Busy inodes after unmount of ceph\n  kernel BUG at fs/super.c:650!\n\nRelease the orphaned claim in the abort path before redirtying, via\nceph_undo_wrbuffer_claim(): detach the snap_context, drop the wrbuffer\nreference (letting i_wrbuffer_ref reach 0 and iput() the inode), and drop\nthe snap_context reference -- i.e. do what writepages_finish() would have\ndone for these never-submitted folios.\n\nOnly the locked_pages entries are undone; folios still in the fbatch were\nnever dirty-cleared by this call (folio_clear_dirty_for_io() is the\nownership-transfer point, and a successful move NULLs the fbatch slot), so\nthey hold no claim this call owns.\n\nReferences:\nhttps://git.kernel.org/stable/c/ac7a5a5385762df458d10cccc086a4e079be7409\nhttps://git.kernel.org/stable/c/c25aee9c630fb86f98d79eccb75765067079b972\nhttps://git.kernel.org/stable/c/cfbbb5bb6f2e5e907dd0dd25e282b6184861eb9a\nhttps://git.kernel.org/stable/c/ec32015a955c5d326c5e26610edfdcccd52f2314","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89646","published_at":"2026-09-11T20:19:50.477000Z","updated_at":"2026-11-23T08:17:20.637000Z","fetched_at":"2026-11-23T08:34:13.729489Z","severity":"high","cvss_score":7.8,"epss":0.00173,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":null,"vuln_id":"CVE-2026-89646","vuln_ids":["CVE-2026-89646"],"tags":[],"cluster_id":13914,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/15272","html":"https://vulnwatch.ve1ve2.com/item/15272"}}]}