PT-2021-24280 · Unknown · Zeroize Derive
Published
2021-09-24
·
Updated
2022-06-22
·
CVE-2021-45706
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
zeroize derive crate versions prior to 1.2
Description:
An issue was discovered where dropped memory is not zeroed out for an enum when the
#[zeroize(drop)] attribute is used. This results in memory not being zeroed out after dropping it, contrary to the intended behavior. The flaw was corrected in version 1.2, where #[zeroize(drop)] on enums now properly implements the Drop trait.Recommendations:
For versions prior to 1.2, update to version 1.2 or later to ensure that the
#[zeroize(drop)] attribute properly implements the Drop trait for enums, thereby zeroing out dropped memory as intended.Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Zeroize Derive