CVE-2026-55894: Capstone SH disassembler `sh_disassemble` out-of-bounds read via crafted SH2A bytecode

Published Aug 20, 2026
·
Updated

Capstone is a disassembly framework. In 6.0.0-Alpha9 and earlier, Capstone's arch/SH/SHDisassembler.c shdisassemble() function computes an idx value from a raw 16-bit instruction without ensuring it is within the active mode-specific decode[] function-pointer table. An application using CSARCHSH with CSMODESH2A or CSMODESH4A and CSMODESHFPU can pass crafted bytecode through csdisasmiter() or csdisasm(), causing the decode[idx] test to read outside the table and terminate the process with a segmentation fault. No code execution or information disclosure was demonstrated. This issue is fixed in version 6.0.0-Alpha10.

Affected Software

1 affected component
Capstone SH disassembler (sh_disassemble)<6.0.0-Alpha10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade capstone to a version that resolves this vulnerability.

    Fixed in 6.0.0-Alpha10

Event History

Aug 20, 2026
CVE Published
via MITRE·09:31 PM
Data Sourced
via MITRE·09:31 PM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using Capstone with CS_ARCH_SH in CS_MODE_SH2A, or CS_MODE_SH4A together with CS_MODE_SHFPU, are affected when they disassemble attacker-controlled SH bytecode. Other architectures and modes are not identified as affected.

2

What must an attacker provide to trigger the crash?

An attacker needs to cause the application to pass crafted SH2A bytecode to cs_disasm_iter() or cs_disasm(). The malformed instruction causes sh_disassemble() to use an unchecked index when accessing the active mode-specific decode table, which can terminate the process with a segmentation fault.

3

What is the practical impact?

The demonstrated impact is denial of service through process termination. No code execution or information disclosure was demonstrated.

4

Which version contains the fix?

The issue is fixed in Capstone 6.0.0-Alpha10. Versions 6.0.0-Alpha9 and earlier are affected according to the available information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203