
CVE catalog
CVE-2022-39394
UBUNTU-CVE-2022-39394
- Severity
- Unknown
- Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.35% · Oct 25, 2026
Wasmtime is a standalone runtime for WebAssembly. Prior to version 2.0.2, there is a bug in Wasmtime's C API implementation where the definition of the `wasmtime_trap_code` does not match its declared signature in the `wasmtime/trap.h` header file. This discrepancy causes the function implementation to perform a 4-byte write into a 1-byte buffer provided by the caller. This can lead to three zero bytes being written beyond the 1-byte location provided by the caller. This bug has been patched and users should upgrade to Wasmtime 2.0.2. This bug can be worked around by providing a 4-byte buffer casted to a 1-byte buffer when calling `wasmtime_trap_code`. Users of the `wasmtime` crate are not affected by this issue, only users of the C API function `wasmtime_trap_code` are affected.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Ubuntu | mozjs52 | 18.04 | 52.3.1-0ubuntu3 | vulnerable |
| Ubuntu | mozjs52 | 18.04 | 52.3.1-7fakesync1 | vulnerable |
| Ubuntu | mozjs52 | 18.04 | 52.8.1-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | mozjs52 | 18.04 | 52.9.1-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | mozjs38 | 18.04 | 38.8.0~repack1-0ubuntu1 | vulnerable |
| Ubuntu | mozjs38 | 18.04 | 38.8.0~repack1-0ubuntu3 | vulnerable |
| Ubuntu | mozjs38 | 18.04 | 38.8.0~repack1-0ubuntu4 | vulnerable |
| Ubuntu | mozjs68 | 20.04 | 68.5.0-1~fakesync | vulnerable |
| Ubuntu | mozjs68 | 20.04 | 68.5.0-2~fakesync | vulnerable |
| Ubuntu | mozjs68 | 20.04 | 68.6.0-1 | vulnerable |
| Ubuntu | mozjs68 | 20.04 | 68.6.0-1ubuntu1 | vulnerable |
| Ubuntu | mozjs52 | 20.04 | 52.9.1-1build1 | vulnerable |
| Ubuntu | mozjs52 | 20.04 | 52.9.1-1ubuntu3 | vulnerable |
| Ubuntu | mozjs78 | 22.04 | 78.13.0-1 | vulnerable |
| Ubuntu | mozjs78 | 22.04 | 78.15.0-2 | vulnerable |
| Ubuntu | mozjs78 | 22.04 | 78.15.0-4ubuntu1 | vulnerable |
| Ubuntu | mozjs91 | 22.04 | 91.5.1-0ubuntu1 | vulnerable |
| Ubuntu | mozjs91 | 22.04 | 91.6.0-1 | vulnerable |
| Ubuntu | mozjs91 | 22.04 | 91.6.0-2 | vulnerable |
| Ubuntu | mozjs91 | 22.04 | 91.7.0-2 | vulnerable |
| Ubuntu | mozjs91 | 22.04 | 91.10.0-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.1.2+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.3.0+build2-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.3.1+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.3.2+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.4.0+build1.1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.4.0+build2-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.5.0+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.5.1+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.6.1+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.7.0+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.7.0+build2-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.8.0+build2-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.9.1+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:91.11.0+build2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.2.2+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.4.2+build2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.7.1+build2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.8.0+build2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.9.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.10.0+build2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.11.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.13.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.15.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:102.15.1+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.3.1+build1-0ubuntu0.22.04.2 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.4.1+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.5.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.6.0+build2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.8.1+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.9.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.10.1+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.11.0+build2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.12.0+build3-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.13.0+build5-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.15.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.16.0+build2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:115.18.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:128.12.0+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 22.04 | 1:140.7.1+build1-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.3.1+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.4.1+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.4.3+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.5.0+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.5.1+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.5.2+build2-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.6.0+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.6.0+build2-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.6.1+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.8.0+build1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.8.1+build1+snap2 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 1:115.8.1+build1+snap3 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 2:1snap1-0ubuntu1 | vulnerable |
| Ubuntu | thunderbird | 24.04 | 2:1snap1-0ubuntu3 | vulnerable |
Fixed-version evidence
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
Observed: