GHSA-jqwc-c49r-4w2x · 深刻度: medium · エコシステム: rust — Miscompilation of `i8x16.swizzle` and `select` with v128 inputs
Wasmtime is a standalone runtime for WebAssembly. In affected versions wasmtime's implementation of the SIMD proposal for WebAssembly on x86_64 contained two distinct bugs in the instruction lowerings implemented in Cranelift. The aarch64 implementation of the simd proposal is not affected. The bugs were presented in the `i8x16.swizzle` and `select` WebAssembly instructions. The `select` instruction is only affected when the inputs are of `v128` type. The correspondingly affected Cranelift instructions were `swizzle` and `select`. The `swizzle` instruction lowering in Cranelift erroneously overwrote the mask input register which could corrupt a constant value, for example. This means that future uses of the same constant may see a different value than the constant itself. The `select` instruction lowering in Cranelift wasn't correctly implemented for vector types that are 128-bits wide. When the condition was 0 the wrong instruction was used to move the correct input to the output of the instruction meaning that only the low 32 bits were moved and the upper 96 bits of the result were left as whatever the register previously contained (instead of the input being moved from). The `select` instruction worked correctly if the condition was nonzero, however. This bug in Wasmtime's implementation of these instructions on x86_64 represents an incorrect implementation of the specified semantics of these instructions according to the WebAssembly specification. The impact of this is benign for hosts running WebAssembly but represents possible vulnerabilities within the execution of a guest program. For example a WebAssembly program could take unintended branches or materialize incorrect values internally which runs the risk of exposing the program itself to other related vulnerabilities which can occur from miscompilations. We have released Wasmtime 0.38.1 and cranelift-codegen (and other associated cranelift crates) 0.85.1 which contain the corrected implementations of these two instructions in Cranelift. If upgrading is not an option for you at this time, you can avoid the vulnerability by disabling the Wasm simd proposal. Additionally the bug is only present on x86_64 hosts. Other aarch64 hosts are not affected. Note that s390x hosts don't yet implement the simd proposal and are not affected.
総合評価: CVE-2022-31104 は中リスク(45.1/100)。CVSS 深刻度は中。悪用される可能性が高い(EPSS 1.62%、73 パーセンタイル) 推奨対応: 影響資産を整理し、修補計画に組み込んでください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-24 | 1.28% | 1.62% | +0.34% |
| 2 | 2026-06-15 | 2.43% | 1.28% | -1.15% |
| 3 | 2026-06-10 | — | 2.43% | — |
EPSS の全履歴 (全 23 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 4.8 | 3.1 | MEDIUM |
|
2.2 | 2.5 | [email protected] |
| 5.6 | 3.1 | MEDIUM |
|
2.2 | 3.4 | [email protected] |
| 6.8 | 2.0 | MEDIUM |
|
8.6 | 6.4 | [email protected] |
GHSA-jqwc-c49r-4w2x · 深刻度: medium · エコシステム: rust — Miscompilation of `i8x16.swizzle` and `select` with v128 inputs
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2022-31104 unimportant priority: Debian including 1 source packages (rust-wasmtime), 3 status rows across 3 suites (forky, sid, trixie): resolved 3. | https://security-tracker.debian.org/tracker/CVE-2022-31104 |
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| bytecodealliance | cranelift-codegen | < 0.85.0 | cpe:2.3:a:bytecodealliance:cranelift-codegen:*:*:*:*:*:rust:*:* |
| bytecodealliance | wasmtime | < 0.38.1 | cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* |
| URL | タグ |
|---|---|
| https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd | Third Party Advisory |
| https://github.com/bytecodealliance/wasmtime/pull/4317 | Issue Tracking Patch Third Party Advisory |
| https://github.com/bytecodealliance/wasmtime/pull/4318 | Issue Tracking Patch Third Party Advisory |
| https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-jqwc-c49r-4w2x | Mitigation Third Party Advisory |
| https://github.com/webassembly/simd | Third Party Advisory |
| https://webassembly.github.io/spec/ | Third Party Advisory |