Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-98411

An exception being thrown in the storage_engine_impl constructor can lead to use-after-free on the WiredTigerConnection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2025-02-17, Storage Execution 2025-03-03
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the linked BF, we saw that if an exception was thrown inside of the storage_engine_impl constructor, we call into the KVEngine destructor which is a member of the storage_engine_impl instance. Then, when we call into the WiredTigerSessionDeleter here, we end up accessing the WiredTigerSessionCache after it has already been freed.

            Assignee:
            sandeep.dhoot@mongodb.com Sandeep Dhoot
            Reporter:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None