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 WiredTigerSessionCache

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • Execution Team 2025-02-17
    • 200

      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:
            3 Start watching this issue

              Created:
              Updated: