A double free can occur in getorinsert upon a panic of a user-provided f function. getorinsert reserves space for a value, before calling the user provided insertion function f. If the function f panics then uninitialized or previously freed memory can be dropped.
{
"nvd_published_at": null,
"cwe_ids": [
"CWE-415"
],
"github_reviewed_at": "2021-08-19T17:04:13Z",
"severity": "CRITICAL",
"github_reviewed": true
}