RustSec Advisory Database
RUSTSEC-2022-0075
Bug in pooling instance allocator
Details
bug in Wasmtime's implementation of its pooling instance allocator where when a linear memory is reused for another instance the initial heap snapshot of the prior instance can be visible, erroneously to the next instance.
Mitigations are described here.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | wasmtime | From 0.0.0-0 before 1.0.2 (fixed in 1.0.2) From 2.0.0 before 2.0.2 (fixed in 2.0.2) |
References
- https://crates.io/crates/wasmtime
- https://rustsec.org/advisories/RUSTSEC-2022-0075.html
- https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0
- https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0
- https://github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6