Skip to content
OpenAdvisories
High · 8.6 CVE-2022-39393 EUVD-2022-7455GHSA-wh6w-3828-g9qfRUSTSEC-2022-0075RUSTSEC-2022-0098

Wasmtime vulnerable to data leakage between instances in the pooling allocator

Published Nov 10, 2022 · Updated May 2, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References