CVE-2026-55894Capstone SH disassembler `sh_disassemble` out-of-bounds read via crafted SH2A bytecode
Capstone is a disassembly framework. In 6.0.0-Alpha9 and earlier, Capstone's arch/SH/SHDisassembler.c sh_disassemble() 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 CS_ARCH_SH with CS_MODE_SH2A or CS_MODE_SH4A and CS_MODE_SHFPU can pass crafted bytecode through cs_disasm_iter() or cs_disasm(), 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.
What to do
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | capstone | Fix pending | UBUNTU-CVE-2026-55894 | |
| Ubuntu 26.04 | capstone | Under investigation | UBUNTU-CVE-2026-55894 | |
| Ubuntu 24.04 | capstone | Under investigation | UBUNTU-CVE-2026-55894 | |
| Ubuntu 22.04 | capstone | Under investigation | UBUNTU-CVE-2026-55894 | |
| Ubuntu 20.04 | capstone | Fix pending | UBUNTU-CVE-2026-55894 | |
| Ubuntu 18.04 | capstone | Fix pending | UBUNTU-CVE-2026-55894 | |
| Ubuntu 16.04 | capstone | Fix pending | UBUNTU-CVE-2026-55894 | |
| Debian 14 | capstone | Fix pending | DEBIAN-CVE-2026-55894 | |
| Debian 13 | capstone | Fix pending | DEBIAN-CVE-2026-55894 | |
| Debian 12 | capstone | Fix pending | DEBIAN-CVE-2026-55894 | |
| Red Hat Enterprise Linux 10 | capstone | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | capstone-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | capstone-java | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | python3-capstone | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | capstone | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | capstone-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | capstone-java | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3-capstone | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- capstone-engine capstone: affected: < 6.0.0-Alpha10
References
- https://github.com/capstone-engine/capstone/security/advisories/GHSA-gf2c-xwcp-hvf4
- https://github.com/capstone-engine/capstone/pull/2968
- https://github.com/capstone-engine/capstone/pull/2969
- https://github.com/capstone-engine/capstone/commit/09e76802380b9e94d9720c44458d9d5282219e7e
- https://github.com/capstone-engine/capstone/commit/e17ee44a8307ea33375b4727ac4f987650bf7bed
- https://github.com/capstone-engine/capstone/releases/tag/6.0.0-Alpha10
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.