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

Make PooledLDAPConnection::refresh take self-ownership

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0, 4.2.10, 4.4.2, 4.0.21
    • Affects Version/s: 4.5.1, 4.0.19, 4.2.8, 4.4.0
    • Component/s: Security
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2, v4.0
    • Security 2020-09-07

      PooledLDAPConnection::refresh schedules a job which validates the wrapped LDAP connection. Under some circumstances, it appears that the pool is able to reap the connection while this job is outstanding, causing a segmentation fault. We should ensure that the connection takes ownership of itself for the duration of the refresh job, just as the TLConnection::refresh method does.

            Assignee:
            shreyas.kalyan@mongodb.com Shreyas Kalyan
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: