CVE-2026-49282: Capstone M68K and RISCV `cs_insn_name()` invalid IDs can trigger out-of-bounds reads and process crashes
Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's public csinsnname() API forwards caller-supplied instruction IDs directly to the selected architecture backend. Most backends validate the ID before indexing instruction-name tables, but the M68K and RISCV backends have missing or incomplete bounds checks. On a Capstone handle opened for M68K or RISCV, a caller-controlled invalid instruction ID can trigger an out-of-bounds read and crash the process. The demonstrated impact is availability loss in applications or bindings that expose instruction-name lookup to untrusted IDs. No code execution or data disclosure was demonstrated. Version 6.0.0-Alpha9 patches the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Capstoneto a version that resolves this vulnerability.Fixed in 6.0.0-Alpha9
Event History
Frequently Asked Questions
What is the severity of CVE-2026-49282?
CVE-2026-49282 has a medium severity score of 5.1.
How do I fix CVE-2026-49282?
The issue can be fixed by upgrading Capstone to version 6.0.0-Alpha9 or later.
What type of vulnerability is CVE-2026-49282?
CVE-2026-49282 is an out-of-bounds read vulnerability.
What can be the consequences of exploiting CVE-2026-49282?
Exploiting CVE-2026-49282 can lead to out-of-bounds reads and potentially cause process crashes.
Which architectures are affected by CVE-2026-49282?
The M68K and RISCV architectures are specifically affected by CVE-2026-49282.