RUSTSEC-2019-0015

Flaw in generativity allows out-of-bounds access

Issued
Package
compact_arena (crates.io)
Type
Vulnerability
Categories
  • memory-corruption
Aliases
Details
https://github.com/llogiq/compact_arena/issues/22
Patched
  • >=0.4.0
Keywords
  • uninitialized-memory
Affected Functions
Version
compact_arena::SmallArena::new
  • <0.4.0

Description

Affected versions of this crate did not properly implement the generativity, because the invariant lifetimes were not necessarily dropped.

This allows an attacker to mix up two arenas, using indices created from one arena with another one. This might lead to an out-of-bounds read or write access into the memory reserved for the arena.

The flaw was corrected by implementing generativity correctly in version 0.4.0.

More