🇰🇷 한글 설명
Wasmtime 런타임의 풀링 인스턴스 할당기에서 `externref` 전역 변수를 정의하는 모듈의 인스턴스화 실패 시, 초기화되지 않은 포인터를 통해 `VMExternRef`를 잘못 드롭하는 버그가 존재합니다. 이 취약점은 특정 조건이 충족되어야 발생하며, Wasmtime 0.34.1 및 0.33.1 버전에서 수정되었습니다.
💡 쉬운 설명
웹어셈블리를 실행하는 프로그램에서 특정 기능을 사용할 때 메모리 관리 오류가 발생할 수 있는 문제입니다. 이 오류를 이용하면 프로그램이 비정상적으로 종료되거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
Wasmtime is an open source runtime for WebAssembly & WASI. Prior to versions 0.34.1 and 0.33.1, there exists a bug in the pooling instance allocator in Wasmtime's runtime where a failure to instantiate an instance for a module that defines an `externref` global will result in an invalid drop of a `VMExternRef` via an uninitialized pointer. A number of conditions listed in the GitHub Security Advisory must be true in order for an instance to be vulnerable to this issue. Maintainers believe that the effective impact of this bug is relatively small because the usage of `externref` is still uncommon and without a resource limiter configured on the `Store`, which is not the default configuration, it is only possible to trigger the bug from an error returned by `mprotect` or `VirtualAlloc`. Note that on Linux with the `uffd` feature enabled, it is only possible to trigger the bug from a resource limiter as the call to `mprotect` is skipped. The bug has been fixed in 0.34.1 and 0.33.1 and users are encouraged to upgrade as soon as possible. If it is not possible to upgrade to version 0.34.1 or 0.33.1 of the `wasmtime` crate, it is recommend that support for the reference types proposal be disabled by passing `false` to `Config::wasm_reference_types`. Doing so will prevent modules that use `externref` from being loaded entirely.
📍 영향받는 시스템
Wasmtime versions prior to 0.34.1 and 0.33.1
⚔️ 공격 벡터
externref를 사용하는 모듈을 로드하여 인스턴스화 실패를 유도함으로써 발생
🛡️ 대응 방법
Wasmtime를 0.34.1 또는 0.33.1 이상으로 업데이트하거나, Config::wasm_reference_types를 false로 설정하여 참조 타입 지원을 비활성화하십시오.
🔧 검증 코드
출력된 버전이 0.34.1 또는 0.33.1보다 낮으면 취약한 상태입니다.
cargo pkgid wasmtime 2>/dev/null | grep -oE 'wasmtime@([0-9]+\.[0-9]+\.[0-9]+)'
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
💻 영향받는 소프트웨어
NVIDIA vGPU Guest Driver for Linux