{"id":"RUSTSEC-2021-0005","summary":"Double drop upon panic in 'fn map_array()'","details":"Affected versions of this crate did not guard against panic within the user-provided function `f` (2nd parameter of `fn map_array`), and thus panic within `f` \ncauses double drop of a single object.\n\nThe flaw was corrected in the 0.4.0 release by wrapping the object vulnerable\nto a double drop within `ManuallyDrop\u003cT\u003e`.","aliases":["CVE-2021-25902","GHSA-cx4j-fxr7-jxg8"],"modified":"2023-11-08T04:05:16.613204Z","published":"2021-01-10T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/glsl-layout"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0005.html"},{"type":"WEB","url":"https://github.com/rustgd/glsl-layout/pull/10"}],"affected":[{"package":{"name":"glsl-layout","ecosystem":"crates.io","purl":"pkg:cargo/glsl-layout"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.4.0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":[],"os":[]}},"database_specific":{"categories":["memory-corruption"],"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0005.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}