Skip to content
OpenAdvisories
Medium · 4.8 CVE-2025-67873 EUVD-2025-203996

Capstone doesn't check Skipdata length, leading to cs_insn.bytes heap buffer overflow

Published Dec 17, 2025 · Updated Dec 18, 2025 · Assigned by GitHub_M

Description

Capstone is a disassembly framework. In versions 6.0.0-Alpha5 and prior, Skipdata length is not bounds-checked, so a user-provided skipdata callback can make cs_disasm/cs_disasm_iter memcpy more than 24 bytes into cs_insn.bytes, causing a heap buffer overflow in the disassembly path. Commit cbef767ab33b82166d263895f24084b75b316df3 fixes the issue.

Affected products

VendorProductAffectedFixed
capstone-engine capstone <= 6.0.0-Alpha5 —

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 5.0.7-1 —
Debian 13 capstone 5.0.7-1~deb13u1 —
Debian 12 capstone No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 capstone No fix yet —
Ubuntu 26.04 LTS capstone No fix yet —
Ubuntu 25.10 capstone No fix yet —
Ubuntu 24.04 LTS capstone No fix yet —
Ubuntu 22.04 LTS capstone No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS capstone No fix yet —
Ubuntu 18.04 LTS capstone No fix yet —
Ubuntu 16.04 LTS capstone No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 capstone +3 5.0.1-7.el10_1 RHSA-2026:6817
RHEL 9 capstone +3 4.0.2-11.el9_7 RHSA-2026:4898
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS capstone +3 5.0.1-7.el10_0 RHSA-2026:5224
RHEL 9.6 EUS capstone +3 4.0.2-11.el9_6 RHSA-2026:5124
RHEL 9.4 EUS capstone +3 4.0.2-11.el9_4 RHSA-2026:5125
RHEL 9.2 E4S capstone 4.0.2-11.el9_2 RHSA-2026:5123
RHEL 9.0 E4S capstone 4.0.2-5.el9_0 RHSA-2026:13923
Red Hat Hardened Images 1 capstone +4 5.0.7-0.1.hum1 RHSA-2026:12781

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 capstone-java +1 5.0.1-7.el10_1 ALSA-2026:6817
AlmaLinux 9 capstone +3 4.0.2-11.el9_7 ALSA-2026:4898

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 capstone 5.0.1-7.el10_1 RLSA-2026:6817
Rocky Linux 9 capstone 4.0.2-11.el9_7 RLSA-2026:4898
ReleasePackageFixed inAdvisory
SLES 15 SP7 capstone 4.0.2-150500.3.3.1 SUSE-SU-2026:0060-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 6.1 capstone 4.0.2-slfo.1.1_2.1 SUSE-SU-2026:20054-1
SLE Micro 6.0 capstone 4.0.2-6.1 SUSE-SU-2026:20868-1
SLE Micro 5.5 capstone 4.0.2-150500.3.3.1 SUSE-SU-2026:0060-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 capstone 4.0.2-150500.3.3.1 SUSE-SU-2026:0060-1
ReleasePackageFixed inAdvisory
Alpine v3.24 capstone 5.0.7-r0 —
Alpine v3.23 capstone 5.0.7-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 capstone +3 4.0.2-9.amzn2023.0.4 ALAS2023-2026-1372
Amazon Linux 2 capstone +3 3.0.5-1.amzn2.0.1 ALAS2-2026-3133

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 capstone No fix yet —
Azure Linux 3 rust 1.90.0-4 —
Azure Linux 2 (CBL-Mariner) capstone No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 capstone +3 5.0.1-7.el10_1 ELSA-2026-6817
Oracle Linux 9 capstone +3 4.0.2-11.el9_7 ELSA-2026-4898

Advisories 20

References