{"id":"RUSTSEC-2020-0017","summary":"Use after free in ArcIntern::drop","details":"`ArcIntern::drop` has a race condition where it can release memory\nwhich is about to get another user. The new user will get a reference\nto freed memory.\n\nThis was fixed by serializing access to an interned object while it\nis being deallocated.\n\nVersions prior to 0.3.12 used stronger locking which avoided the problem.","aliases":["CVE-2020-35874","GHSA-96w3-p368-4h8c"],"modified":"2023-11-08T04:03:36.887095Z","published":"2020-05-28T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/internment"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0017.html"},{"type":"REPORT","url":"https://github.com/droundy/internment/issues/11"}],"affected":[{"package":{"name":"internment","ecosystem":"crates.io","purl":"pkg:cargo/internment"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.12"},{"fixed":"0.4.0"}]}],"ecosystem_specific":{"affects":{"functions":["internment::ArcIntern::drop"],"arch":[],"os":[]},"affected_functions":null},"database_specific":{"informational":null,"categories":["memory-corruption"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0017.json","cvss":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}