All reports
Critical

Double-free in id-map

Affected versions

Rust / Cargoid-map
Affected versions
<= 0.2.1
Fixed version
Not reported

Exploitation

CVE-2021-30456

Probability of exploitation in the next 30 days: 1.14%

FIRST EPSS · 2026-11-20

Description

A double free can occur in get_or_insert upon a panic of a user-provided f function. get_or_insert 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.

Links