Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2022-31169— Cranelift vulnerable to miscompilation of constant values in division on AArch64

Quick assessment

Affected
bytecodealliance wasmtime
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Wasmtime是一个字节码联盟项目,它是一个独立的仅用于 WebAssembly 和 WASI 的 wasm 优化运行时。 Wasmtime的代码生成器Cranelift存在安全漏洞,该漏洞源于基于AArch64平台中,其对常量的转换规则没有考虑是否应该发生符号或零扩展,这导致在遇到除法时将不正确的值放入寄存器。以下版本受到影响:Wasmtime 0.38.2及以前的版本、Cranlift 0.85.2及以前的版本。

CVSS 5.9 · Medium EPSS 0.90% · P58

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-31169

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Cranelift vulnerable to miscompilation of constant values in division on AArch64
Source: CVE Program / CVE List V5
Vulnerability Description
Wasmtime is a standalone runtime for WebAssembly. There is a bug in Wasmtime's code generator, Cranelift, for AArch64 targets where constant divisors can result in incorrect division results at runtime. This affects Wasmtime prior to version 0.38.2 and Cranelift prior to 0.85.2. This issue only affects the AArch64 platform. Other platforms are not affected. The translation rules for constants did not take into account whether sign or zero-extension should happen which resulted in an incorrect value being placed into a register when a division was encountered. The impact of this bug is that programs executing within the WebAssembly sandbox would not behave according to the WebAssembly specification. This means that it is hypothetically possible for execution within the sandbox to go awry and WebAssembly programs could produce unexpected results. This should not impact hosts executing WebAssembly but does affect the correctness of guest programs. This bug has been patched in Wasmtime version 0.38.2 and cranelift-codegen 0.85.2. There are no known workarounds.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
数值计算不正确
Source: CVE Program / CVE List V5
Vulnerability Title
Wasmtime 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Wasmtime是一个字节码联盟项目,它是一个独立的仅用于 WebAssembly 和 WASI 的 wasm 优化运行时。 Wasmtime的代码生成器Cranelift存在安全漏洞,该漏洞源于基于AArch64平台中,其对常量的转换规则没有考虑是否应该发生符号或零扩展,这导致在遇到除法时将不正确的值放入寄存器。以下版本受到影响:Wasmtime 0.38.2及以前的版本、Cranlift 0.85.2及以前的版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
bytecodealliance wasmtime < 0.38.2 -

II. Public POCs for CVE-2022-31169

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-31169

请登录查看更多情报信息。

Patches & Fixes for CVE-2022-31169 (1)

Vendor Advisories for CVE-2022-31169 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-31169

No comments yet


Leave a comment