漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Capstone WASM `br_table` instruction-size truncation can cause no-progress disassembly and parser desynchronization
Vulnerability Description
Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's WebAssembly backend accepts attacker-controlled raw WASM instruction bytes through the public `cs_disasm()` and `cs_disasm_iter()` APIs. For a large but well-formed `br_table` instruction, the WASM decoder accumulates the immediate length in a wider local variable but returns it through a `uint16_t` instruction-size path. When the encoded instruction length is exactly 65,536 bytes, the size wraps to zero and `cs_disasm()` can repeatedly decode the same instruction without advancing. For larger lengths, `cs_disasm_iter()` advances into the middle of the `br_table` payload and decodes target bytes as subsequent instructions. This is an availability and parser-integrity issue. Version 6.0.0-Alpha9 patches the issue.
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Vulnerability Type
数值截断错误
Vulnerability Title
Capstone Engine 数字错误漏洞
Vulnerability Description
Capstone Engine是Capstone Engine组织开源的一套反汇编引擎框架。 Capstone Engine 6.0.0-Alpha9之前版本存在数字错误漏洞,该漏洞源于WebAssembly后端处理br_table指令长度不当,当编码指令长度恰为65536字节时大小回绕为零,导致cs_disasm()重复解码同一指令而不前进;对于更大长度,cs_disasm_iter()会进入br_table负载中间解码后续指令,可能导致可用性和解析器完整性问题。
CVSS Information
N/A
Vulnerability Type
N/A