MongoDB Fixes Critical Heap Use-After-Free in Plan Cache Sort Pattern Handling
MongoDB has resolved a major memory safety bug where the plan cache retained a dangling reference to a write command's sort pattern. The flaw, confirmed by AddressSanitizer, allowed a heap use-after-free when serializing plan cache statistics. The fix is included in versions 8.3.16, 9.0.7, 8.0.37, and 7.0.48.