{"id":"RUSTSEC-2026-0284","revision":null,"records":[{"revision":"1d8f37fb0f6a42b2bc68c61ccb79ffa0","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0284","aliases":[],"title":"Double free in `Map::into_iter` and an uninitialized `Arc` in `SharedIncin::clear`","description":"Two independent soundness problems, both reachable from safe Rust.\n\n`Map::into_iter` drops `builder` (the caller-supplied hasher `H`) and `incin` by\nhand, then commits the ownership transfer with `mem::forget(self)`. `H::drop` is\nuser code and may panic. If it does, `mem::forget(self)` is skipped and the\nstill-live `Map` unwinds, whose field drop glue destroys `builder` a second\ntime. An empty map is enough — no entries or concurrency required.\n\n`SharedIncin::clear` writes `mem::uninitialized::<Arc<_>>()` into `self.inner`\nbefore taking the real `Arc` out. `Arc` has a validity invariant, so this is\nundefined behaviour at the point of creation, with no panic or concurrency\ninvolved. Between that write and the repairing one, `self.inner` also holds\ngarbage while `self` is still droppable, so an unwind from `incin.clear()` or\n`Arc::new` decrements a refcount through an uninitialized pointer. The\n`make_shared_incin!` macro is instantiated five times, so this covers `queue`,\n`stack`, `map`, `channel::spmc` and `channel::mpmc`.\n\n## Impact\n\n* CWE-415 (Double Free): the same allocation is freed twice.\n* CWE-416 (Use-After-Free): a freed allocation is accessed during a repeated `Drop`.\n* CWE-908 (Use of Uninitialized Resource): an `Arc` is constructed from uninitialized bytes.\n\n## Fix\n\nNo fixed release is available. The crate has had no release since 2018-11-18 and\nthe maintainer has not responded to the report.","state":0,"publishedAt":"2026-08-26T12:00:00+00:00","modifiedAt":"2026-09-14T10:00:03.0176658+00:00","affected":[{"ecosystem":"crates.io","name":"lockfree","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/lockfree","https://rustsec.org/advisories/RUSTSEC-2026-0284.html","https://gitlab.com/bzim/lockfree/-/issues/7"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0284","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0284","identifiers":["RUSTSEC-2026-0284"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-13T18:01:05.5413022+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-13T18:01:05.5413022+00:00","lastSuccessAt":"2026-11-13T18:01:05.7729339+00:00","error":null,"lastVerifiedAt":"2026-11-13T18:01:05.7729352+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d8fa82e95fdb59244e2f635e667ba17f0796ca0a4f1f4bb8cc31febcd660b76c-ccaf70881389a6dde5b6a56695261f5e99c3b78e7d92f29b689b3669ccc7d293","complete":true,"records":425536,"lastAttemptAt":"2026-11-13T17:57:15.2133348+00:00","lastSuccessAt":"2026-11-13T17:57:14.9138678+00:00","error":null,"lastVerifiedAt":"2026-11-13T17:57:15.2133348+00:00","snapshotPublishedAt":"2026-11-13T17:24:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0935ecd52e0a4dcba231eb8eac2a06d0","complete":false,"records":13797,"lastAttemptAt":"2026-11-13T18:11:36.7102949+00:00","lastSuccessAt":"2026-11-13T18:11:36.702+00:00","error":"824 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-13T18:11:36.702+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":12620,"expectedIdentifiers":13850,"failedIdentifiers":824},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-13T18:01:05.5413022+00:00","complete":true,"records":1123,"lastAttemptAt":"2026-11-13T18:01:05.5413022+00:00","lastSuccessAt":"2026-11-13T18:01:05.7779306+00:00","error":null,"lastVerifiedAt":"2026-11-13T18:01:05.7779313+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-32661fdb309e42beb400bdb9ba8a1124","complete":true,"records":13797,"lastAttemptAt":"2026-11-13T18:01:41.4058929+00:00","lastSuccessAt":"2026-11-13T18:01:41.402+00:00","error":null,"lastVerifiedAt":"2026-11-13T18:01:41.402+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13850,"expectedIdentifiers":13850,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-93e76d404e1aeb6a7e8902f5ffa06211fc86dea3b1958e297abb2668aa5e6e8c","complete":true,"records":9952,"lastAttemptAt":"2026-11-13T18:01:05.3922026+00:00","lastSuccessAt":"2026-11-12T23:19:15.5239119+00:00","error":null,"lastVerifiedAt":"2026-11-13T18:01:05.3922026+00:00","snapshotPublishedAt":"2026-11-12T23:03:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-4d60731753a2f72e455d1086e7203d0ef10843936dcc1cf2b45135e2caa204b0","complete":true,"records":2012,"lastAttemptAt":"2026-11-13T17:57:15.3850684+00:00","lastSuccessAt":"2026-11-12T18:16:50.7862525+00:00","error":null,"lastVerifiedAt":"2026-11-13T17:57:15.3850684+00:00","snapshotPublishedAt":"2026-11-12T17:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f7b4a39cba128839548000e6d1d86fef7e48dd6f19f8e345c343f4aa28de8b91","complete":true,"records":3146,"lastAttemptAt":"2026-11-13T18:01:05.4945949+00:00","lastSuccessAt":"2026-11-13T15:58:45.7257812+00:00","error":null,"lastVerifiedAt":"2026-11-13T18:01:05.4945949+00:00","snapshotPublishedAt":"2026-11-13T15:48:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-e36c3f641409a47745aac9a2b2ecb0fdf427f10ad1cc88f2e02065e57108d794","complete":true,"records":231780,"lastAttemptAt":"2026-11-13T18:01:05.257177+00:00","lastSuccessAt":"2026-11-13T18:01:03.35099+00:00","error":null,"lastVerifiedAt":"2026-11-13T18:01:05.257177+00:00","snapshotPublishedAt":"2026-11-13T17:33:05+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}