WebAssembly Micro Runtimeに ヒープバッファオーバーフローの脆弱性
Summary
WebAssembly Micro Runtime(WAMR)のWASI poll_oneoffでヒープバッファオーバーフローの脆弱性が見つかりました。細工したWasmモジュールによって、ホストプロセスのヒープ領域に書き込みが及び、プロセスがクラッシュするおそれがあります。影響を受けるのは2.4.5より前のバージョンで、2.4.5で修正されています。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
WebAssembly Micro Runtime(WAMR)のWASI poll_oneoffでヒープバッファオーバーフローの脆弱性が見つかりました。細工したWasmモジュールによって、ホストプロセスのヒープ領域に書き込みが及び、プロセスがクラッシュするおそれがあります。影響を受けるのは2.4.5より前のバージョンで、2.4.5で修正されています。
Original description The description as published by the source.
WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) runtime. Prior to 2.4.5, wasi_poll_oneoff in core/iwasm/libraries/libc-wasi/libc_wasi_wrapper.c validates the output pointer for only one wasi_event_t, while wasmtime_ssp_poll_oneoff in core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c can write as many events as the guest-controlled nsubscriptions value. A crafted guest module can provide multiple subscriptions that produce events while positioning an output region large enough for only one event, causing a later out[nevents] write to cross the validated Wasm linear-memory boundary into adjacent host heap memory. The overwrite contains partly attacker-controlled event data and can reliably crash the host process, with further confidentiality or integrity consequences depending on heap layout. This issue is fixed in version 2.4.5.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com