[SERVER-57324] dropDatabase should not modify CollectionCatalog inplace Created: 01/Jun/21  Updated: 29/Oct/23  Resolved: 02/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc1, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-56002 listIndexes can read partial state fr... Closed
is related to SERVER-56023 listCollections can return empty meta... Closed
is related to SERVER-50349 Requests for writable Collection shou... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Participants:
Linked BF Score: 158

 Description   

It causes lock-free listCollection to use-after-free as it reads from stashed CollectionCatalog that is supposed to be immutable.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 04/Jun/21 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-57324 dropDatabase should not modify CollectionCatalog inplace

It causes listCollection to use-after-free as it reads from a stashed CollectionCatalog that is supposed to be immutable.

(cherry picked from commit 2da60c28f0996433e61e80ac5cfdde621244837e)
Branch: v5.0
https://github.com/mongodb/mongo/commit/43fc226c3cee0d7e5653c87a2bab5c067e956f8a

Comment by Githook User [ 01/Jun/21 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-57324 dropDatabase should not modify CollectionCatalog inplace

It causes listCollection to use-after-free as it reads from a stashed CollectionCatalog that is supposed to be immutable.
Branch: master
https://github.com/mongodb/mongo/commit/2da60c28f0996433e61e80ac5cfdde621244837e

Generated at Thu Feb 08 05:41:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.