[SERVER-63224] ViewCatalog pointer in ViewCatalog::createView can dangle Created: 02/Feb/22 Updated: 29/Oct/23 Resolved: 03/Feb/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.0 |
| 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: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Sprint: | Execution Team 2022-02-07 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 140 | ||||||||||||
| Description |
|
ViewCatalogWriter::operator->() returns an unsafe pointer when it is not in write mode. So we can get a segfault in createView() when it happens concurrently with a database registration operation. |
| Comments |
| Comment by Githook User [ 03/Feb/22 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: |