Operational Defect Database

BugZero found this defect 2493 days ago.

MongoDB | 378163

[SERVER-28996] MongoURI::connect can leak a DBClientInterface object on auth failure

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

3.2.12

3.4.4

3.5.6

Fixed releases:

3.2.14

3.4.5

3.5.7

Description:

Info

If auth fails via an exception, the following code will leak a DBClientBase object: https://github.com/mongodb/mongo/blob/v3.4/src/mongo/client/mongo_uri_connect.cpp#L180-L188

Top User Comments

xgen-internal-githook commented on Wed, 24 May 2017 19:41:19 +0000: Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'} Message: SERVER-28996 SERVER-28996 Fix memory leak in MongoURI if auth fails (cherry picked from commit cb893ef71d66bea22dd79553bd0080549f794c16) Branch: v3.2 https://github.com/mongodb/mongo/commit/24353098bf91d2914ade05b305f3edc0cbe30c7c xgen-internal-githook commented on Wed, 24 May 2017 19:41:18 +0000: Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'} Message: SERVER-28996 SERVER-28996 Fix memory leak in MongoURI if auth fails (cherry picked from commit cb893ef71d66bea22dd79553bd0080549f794c16) Branch: v3.2 https://github.com/mongodb/mongo/commit/24353098bf91d2914ade05b305f3edc0cbe30c7c xgen-internal-githook commented on Wed, 17 May 2017 20:26:33 +0000: Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'} Message: SERVER-28996 SERVER-28996 Fix memory leak in MongoURI if auth fails (cherry picked from commit cb893ef71d66bea22dd79553bd0080549f794c16) Branch: v3.4 https://github.com/mongodb/mongo/commit/ae06aa4ec7137bb1e2688838d29dd778338a6393 xgen-internal-githook commented on Wed, 17 May 2017 20:26:32 +0000: Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'} Message: SERVER-28996 SERVER-28996 Fix memory leak in MongoURI if auth fails (cherry picked from commit cb893ef71d66bea22dd79553bd0080549f794c16) Branch: v3.4 https://github.com/mongodb/mongo/commit/ae06aa4ec7137bb1e2688838d29dd778338a6393 xgen-internal-githook commented on Mon, 1 May 2017 19:09:52 +0000: Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'} Message: SERVER-28996 SERVER-28996 Fix memory leak in MongoURI if auth fails Branch: master https://github.com/mongodb/mongo/commit/cb893ef71d66bea22dd79553bd0080549f794c16 xgen-internal-githook commented on Mon, 1 May 2017 19:09:51 +0000: Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'} Message: SERVER-28996 SERVER-28996 Fix memory leak in MongoURI if auth fails Branch: master https://github.com/mongodb/mongo/commit/cb893ef71d66bea22dd79553bd0080549f794c16 acm commented on Thu, 27 Apr 2017 15:29:50 +0000: This issue also affects v3.4 and v3.2. The 3.0 branch is unaffected.

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...