CVE-2026-55894
CVE-2026-55894 · Capstone SH disassembler `sh_disassemble` out-of-bounds read via crafted SH2A bytecode
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 6.8 · Medium · EPSS 0.2%
- Published
- Updated
Stack: system
Affected products and versions
capstone
- Versions
- < 6.0.0-Alpha10: Affected
No fix published
capstone Debian:12
- Versions
- 4.0.2-5
- 4.0.2-5.1
- 5.0-1~exp1
- 5.0.1-1~exp1
- 5.0.3-1
- 5.0.5-1
- 5.0.6-1
- 5.0.7-1
- 5.0.7-1~deb13u1
- 5.0.7-2
- 5.0.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Debian:13
- Versions
- 5.0.6-1
- 5.0.7-1
- 5.0.7-1~deb13u1
- 5.0.7-2
- 5.0.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Debian:14
- Versions
- 5.0.6-1
- 5.0.7-1
- 5.0.7-1~deb13u1
- 5.0.7-2
- 5.0.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Ubuntu:16.04:LTS
- Versions
- 3.0.4-0.1
- 3.0.4-0.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Ubuntu:18.04:LTS
- Versions
- 3.0.4-3
- 3.0.4-5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Ubuntu:20.04:LTS
- Versions
- 4.0.1+really+3.0.5-1
- 4.0.1+really+3.0.5-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Ubuntu:22.04:LTS
- Versions
- 4.0.2-3
- 4.0.2-3build1
- 4.0.2-5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Ubuntu:24.04:LTS
- Versions
- 4.0.2-5
- 4.0.2-5ubuntu1
- 4.0.2-5.1
- 4.0.2-5.1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Ubuntu:26.10
- Versions
- 5.0.7-2
- 5.0.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
capstone Ubuntu:26.04:LTS
- Versions
- 5.0.6-1
- 5.0.6-1build1
- 5.0.7-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-55894