Skip to content
OpenAdvisories
Medium · 5.1 CVE-2026-49282 EUVD-2026-58744

Capstone M68K and RISCV `cs_insn_name()` invalid IDs can trigger out-of-bounds reads and process crashes

Published Aug 14, 2026 · Updated Aug 17, 2026 · Assigned by GitHub_M

Description

Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's public `cs_insn_name()` API forwards caller-supplied instruction IDs directly to the selected architecture backend. Most backends validate the ID before indexing instruction-name tables, but the M68K and RISCV backends have missing or incomplete bounds checks. On a Capstone handle opened for M68K or RISCV, a caller-controlled invalid instruction ID can trigger an out-of-bounds read and crash the process. The demonstrated impact is availability loss in applications or bindings that expose instruction-name lookup to untrusted IDs. No code execution or data disclosure was demonstrated. Version 6.0.0-Alpha9 patches the issue.

Affected products

VendorProductAffectedFixed
capstone-engine capstone < 6.0.0-Alpha9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 capstone No fix yet —
Debian 13 capstone No fix yet —
Debian 12 capstone No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 capstone No fix yet —
Ubuntu 26.04 LTS capstone No fix yet —
Ubuntu 24.04 LTS capstone No fix yet —
Ubuntu 22.04 LTS capstone No fix yet —
Ubuntu 20.04 LTS capstone No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS capstone No fix yet —
Ubuntu 16.04 LTS capstone No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 capstone +4 5.0.8-0.5.hum1 RHSA-2026:81540

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 capstone No fix yet —
Azure Linux 3 rust 1.75.0-30 —

Advisories 1

References