Description
Wasmtime is a standalone runtime for WebAssembly. Prior to versions 2.0.2 and 1.0.2, there is a 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. This bug has been patched and users should upgrade to Wasmtime 2.0.2 and 1.0.2. Other mitigations include disabling the pooling allocator and disabling the `memory-init-cow`.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| bytecodealliance | wasmtime | >= 2.0.0, < 2.0.2, < 1.0.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | thunderbird | No fix yet | — |
| Ubuntu 22.04 LTS | mozjs78 +2 | No fix yet | — |
| Ubuntu 20.04 LTS | mozjs52 +1 | No fix yet | — |
| Ubuntu 18.04 LTS | mozjs38 +1 | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | wasmtime | >= 2.0.0, < 2.0.2 | 2.0.2 | GHSA-wh6w-3828-g9qf |
| crates.io | wasmtime | < 1.0.2 | 1.0.2 | GHSA-wh6w-3828-g9qf |
| crates.io | wasmtime | >= 0.0.0-0, < 1.0.2 · >= 2.0.0, < 2.0.2 | 1.0.2, 2.0.2 | RUSTSEC-2022-0075 |