Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

nvd логотип

CVE-2022-24791

Опубликовано: 31 мар. 2022
Источник: nvd
CVSS3: 8.1
CVSS3: 9.8
CVSS2: 6.8
EPSS Низкий

Описание

Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cranelift. There is a use after free vulnerability in Wasmtime when both running Wasm that uses externrefs and enabling epoch interruption in Wasmtime. If you are not explicitly enabling epoch interruption (it is disabled by default) then you are not affected. If you are explicitly disabling the Wasm reference types proposal (it is enabled by default) then you are also not affected. The use after free is caused by Cranelift failing to emit stack maps when there are safepoints inside cold blocks. Cold blocks occur when epoch interruption is enabled. Cold blocks are emitted at the end of compiled functions, and change the order blocks are emitted versus defined. This reordering accidentally caused Cranelift to skip emitting some stack maps because it expected to emit the stack maps in block definition order, rather than block emission order. When Wasmtime would eventually collect garbage, it would fail to find live referen

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*
Версия от 0.34.0 (включая) до 0.34.2 (исключая)
cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*
Версия от 0.35.0 (включая) до 0.35.2 (исключая)

EPSS

Процентиль: 64%
0.00469
Низкий

8.1 High

CVSS3

9.8 Critical

CVSS3

6.8 Medium

CVSS2

Дефекты

CWE-416

Связанные уязвимости

CVSS3: 8.1
ubuntu
почти 4 года назад

Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cranelift. There is a use after free vulnerability in Wasmtime when both running Wasm that uses externrefs and enabling epoch interruption in Wasmtime. If you are not explicitly enabling epoch interruption (it is disabled by default) then you are not affected. If you are explicitly disabling the Wasm reference types proposal (it is enabled by default) then you are also not affected. The use after free is caused by Cranelift failing to emit stack maps when there are safepoints inside cold blocks. Cold blocks occur when epoch interruption is enabled. Cold blocks are emitted at the end of compiled functions, and change the order blocks are emitted versus defined. This reordering accidentally caused Cranelift to skip emitting some stack maps because it expected to emit the stack maps in block definition order, rather than block emission order. When Wasmtime would eventually collect garbage, it would fail to find live refe...

msrc
5 месяцев назад

Use after free in Wasmtime

CVSS3: 8.1
debian
почти 4 года назад

Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cran ...

CVSS3: 8.1
github
почти 4 года назад

Use after free in Wasmtime

EPSS

Процентиль: 64%
0.00469
Низкий

8.1 High

CVSS3

9.8 Critical

CVSS3

6.8 Medium

CVSS2

Дефекты

CWE-416