SERVER-136505ClosedFixed

Use-after-free in strict time-series bucket validation via stale FlatBSON field lookup map

h2. Problem The strict time-series bucket validator, which runs by default on raw bucket inserts and updates ([validateBucketConsistency|https://github.com/10gen/mongo/blob/f18a6b6768b/src/mongo/db/timeseries/timeseries_bucket_validation.cpp#L481-L560], dispatched from [CollectionImpl::checkValidation|https://github.com/10gen/mongo/blob/f18a6b6768b/src/mongo/db/shard_role/shard_catalog/collection_impl.cpp#L606-L621]), rebuilds a bucket's min/max summaries by merging every measurement value in

Affected Versions
Versions known to exhibit this issue
8.3.38.3.48.3.58.2.128.3.68.2.138.0.288.3.78.0.298.3.88.3.99.0.09.0.19.0.29.0.39.0.49.0.5
Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10258.3.169.0.78.0.377.0.48
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.