CVE-2026-49263
Beschrijving NL
Capstone is een demontage raamwerk. Voorafgaand aan versie 6.0.0-Alpha9 accepteert de WebAssembly-backend van Capstone door aanvallers gecontroleerde ruwe WASM-instructiebytes via de openbare API`s `cs_disasm()` en `cs_disasm_iter()`. Voor een grote maar goed gevormde `br_table` -instructie accumuleert de WASM-decoder de onmiddellijke lengte in een bredere lokale variabele, maar retourneert deze via een `uint16_t` -instructiepad. Wanneer de gecodeerde instructielengte precies 65.536 bytes is, loopt de grootte terug naar nul en kan `cs_disasm()` herhaaldelijk dezelfde instructie decoderen zonder verder te gaan. Voor grotere lengtes gaat `cs_disasm_iter()` naar het midden van de `br_table` payload en decodeert doelbytes als volgende instructies. Dit is een probleem met beschikbaarheid en parser-integriteit. Versie 6.0.0-Alpha9 verhelpt het probleem.
Origineel (Engels) tonen
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.