CVE-2026-55894
JSON

6.8medium

Capstone SH disassembler `sh_disassemble` out-of-bounds read via crafted SH2A bytecode

Severity
6.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
capstone-engine capstone< 6.0.0-Alpha10CVE List

Classification

CWE-125

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Capstone es un framework de desensamblaje. En 6.0.0-Alpha9 y versiones anteriores, la función sh_disassemble() de arch/SH/SHDisassembler.c de Capstone calcula un valor idx a partir de una instrucción bruta de 16 bits sin asegurar que esté dentro de la tabla de punteros a funciones decode[] activa y específica del modo. Una aplicación que utiliza CS_ARCH_SH con CS_MODE_SH2A o CS_MODE_SH4A y CS_MODE_SHFPU puede pasar bytecode manipulado a través de cs_disasm_iter() o cs_disasm(), haciendo que la prueba decode[idx] lea fuera de la tabla y termine el proceso con un fallo de segmentación. No se demostró ejecución de código ni revelación de información. Este problema está corregido en la versión 6.0.0-Alpha10.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-55894 changed 2026-08-21CVE Terms of Use
NVDCVE-2026-55894 changed 2026-10-18Public domain