WebAssembly Micro Runtime (WAMR) — лёгкая автономная среда выполнения WebAssembly (Wasm). До версии 2.4.4 проблема доступа к массиву out-of-bounds существовала в режиме быстрого интерпретатора WAMR во время загрузки байт-кода WASM. Когда массивы frame_ref_bottom и frame_offset_bottom находятся на мощности и встречается опкод GET_GLOBAL(I32), frame_ref_bottom расширяется, но frame_offset_bottom может не быть.
Если за этим немедленно следует if opcode, который запускает preserve_local_for_block, функция пересекает массивы, используя stack_cell_num в качестве верхней границы, вызывая доступ out-of-bounds к frame_offset_bottom, поскольку он не был расширен, чтобы соответствовать увеличенному stack_cell_num. Эта проблема была исправлена в версии 2.4.4.
Показать оригинальное описание (EN)
WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) runtime. Prior to version 2.4.4, an out-of-bounds array access issue exists in WAMR's fast interpreter mode during WASM bytecode loading. When frame_ref_bottom and frame_offset_bottom arrays are at capacity and a GET_GLOBAL(I32) opcode is encountered, frame_ref_bottom is expanded but frame_offset_bottom may not be. If this is immediately followed by an if opcode that triggers preserve_local_for_block, the function traverses arrays using stack_cell_num as the upper bound, causing out-of-bounds access to frame_offset_bottom since it wasn't expanded to match the increased stack_cell_num. This issue has been patched in version 2.4.4.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Bytecodealliance Webassembly_Micro_Runtime
cpe:2.3:a:bytecodealliance:webassembly_micro_runtime:*:*:*:*:*:*:*:*
|
— |
2.4.4
|