CVEfocus › CVE database › CVE-2026-55893

CVE-2026-55893Capstone SH disassembler `set_reg_n` heap buffer overflow via crafted SH2A FPU bytecode

CVSS 7.3 HighEPSS 0.2% (higher than 8% of CVEs)Published 2026-08-20Updated 2026-08-21Assigner: GitHub_M

Capstone is a disassembly framework. In 6.0.0-Alpha9 and earlier, Capstone's arch/SH/SHDisassembler.c SH floating-point decoders such as opFADD, opFMUL, and opFSUB call set_reg() and set_reg_n() using sh_info.op.op_count without checking the fixed-size operands[] array. Repeated crafted instructions processed through cs_disasm_iter() or cs_disasm() with CS_ARCH_SH, CS_MODE_SH2A or CS_MODE_SH4A, CS_MODE_SHFPU, and CS_OPT_DETAIL can increment the operand count beyond the 176-byte sh_info allocation and perform a four-byte heap buffer overflow write. The corruption can crash the process and may enable code execution depending on heap layout. This issue is fixed in version 6.0.0-Alpha10.

CWE-122

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

15Fix pending
3Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10capstoneFix pendingUBUNTU-CVE-2026-55893
Ubuntu 26.04capstoneUnder investigationUBUNTU-CVE-2026-55893
Ubuntu 24.04capstoneUnder investigationUBUNTU-CVE-2026-55893
Ubuntu 22.04capstoneUnder investigationUBUNTU-CVE-2026-55893
Ubuntu 20.04capstoneFix pendingUBUNTU-CVE-2026-55893
Ubuntu 18.04capstoneFix pendingUBUNTU-CVE-2026-55893
Ubuntu 16.04capstoneFix pendingUBUNTU-CVE-2026-55893
Debian 14capstoneFix pendingDEBIAN-CVE-2026-55893
Debian 13capstoneFix pendingDEBIAN-CVE-2026-55893
Debian 12capstoneFix pendingDEBIAN-CVE-2026-55893
Red Hat Enterprise Linux 10capstoneFix pending
Affected
Red Hat Enterprise Linux 10capstone-develFix pending
Affected
Red Hat Enterprise Linux 10capstone-javaFix pending
Affected
Red Hat Enterprise Linux 10python3-capstoneFix pending
Affected
Red Hat Enterprise Linux 9capstoneFix pending
Affected
Red Hat Enterprise Linux 9capstone-develFix pending
Affected
Red Hat Enterprise Linux 9capstone-javaFix pending
Affected
Red Hat Enterprise Linux 9python3-capstoneFix pending
Affected

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.

References

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.