{"id":"GHSA-xrrq-rrgq-h89w","aliases":["RUSTSEC-2025-0042"],"url":"https://o3.security/vulnerability/GHSA-xrrq-rrgq-h89w","summary":"static-alloc vulnerability leads to uninitialized read after allocating MemBump","details":"The affected function, `MemBump::new()`, would allocate memory without initializing it. Subsequently calling the created value's various `alloc`methods would then read and write the start of that memory as a `Cell` which isundefined behavior. Instead, it should zero initialize the start of the allocated memory.\n\nFor instance, some values could violate the internal invariants of the type and cause an assertion failure. Nevertheless, no deterministic read is known tocause further uninitialized memory to be exposed.\n\nAffected downstream users that can not upgrade are advised to call `MemBump::reset` immediately after allocation to manually perform the missing write of the counter best-as-possible.\n\nThe flaw was corrected in commit d8d6a7d096d3aaafd963b356a8f1bbd8d26fd967 by zeroing the Cell at the start of the allocated memory.","published":"2025-07-11T19:57:06Z","modified":"2025-10-28T06:29:27.107480Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"static-alloc","fixedVersion":"0.2.6"}],"fix":{"url":"https://github.com/197g/static-alloc/pull/82/commits/d8d6a7d096d3aaafd963b356a8f1bbd8d26fd967","label":"197g/static-alloc#82"},"references":[{"type":"WEB","url":"https://github.com/197g/static-alloc/issues/81"},{"type":"WEB","url":"https://github.com/197g/static-alloc/pull/82/commits/d8d6a7d096d3aaafd963b356a8f1bbd8d26fd967"},{"type":"WEB","url":"https://github.com/197g/static-alloc"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2025-0042.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2025-10-28T06:29:27.107480Z"}}