[SERVER-64434] ASAN heap use after free after deleting the state doc when cleaning the recipient state doc Created: 11/Mar/22  Updated: 29/Oct/23  Resolved: 14/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2022-03-21
Participants:
Linked BF Score: 171

 Description   

ASAN has caught another instance of heap use after free when deleting the state doc. A log line is accessing a data member _migrationId when trying to write to the logs that the cleanup finished.



 Comments   
Comment by Githook User [ 14/Mar/22 ]

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-64434 fixing heap use after free when deleting state document
Branch: master
https://github.com/mongodb/mongo/commit/c7b28ce59ba0856a865d355fff391f63592866f3

Generated at Thu Feb 08 06:00:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.