Really deregister all collections when closing CollectionCatalog

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0, 8.1.3, 8.0.14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • v8.1, v8.0, v7.0
    • Storage Execution 2025-07-07
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-90643 added a check to avoid dereferencing the oplog RecordStore pointer being null. However, the function CollectionCatalog::deregisterAllCollectionsAndViews doesn't really deregister the collections, which is required to set the pointer to null. This means SERVER-90643's check isn't effective against use-after-free of the pointer.

            Assignee:
            Wei Hu
            Reporter:
            Wei Hu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: