Skip to content

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

HighCVSS 7.8 EPSS 0.25%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

19 packages: 13 fixed, 1 partially fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/capstone(Debian 12) = 4.0.2-5; = 4.0.2-5.1; = 5.0-1~exp1; = 5.0.1-1~exp1 +8 more No fix listed No fix yet
ubuntu/capstone(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/capstone(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/capstone(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/capstone(Ubuntu 26.10) All versions No fix listed No fix yet
azure linux rust(Azure Linux 3.0) < 1.90.0-4; All versions 1.90.0-4 Partially fixed
alpine/capstone(Alpine v3.23) < 5.0.7-r0 5.0.7-r0 Fixed
alpine/capstone(Alpine v3.24) < 5.0.7-r0 5.0.7-r0 Fixed
capstone-engine capstone < 6.0.0; = 6.0.0-alpha1; = 6.0.0-alpha2; = 6.0.0-alpha3 +3 more 6.0.0 Fixed
debian/capstone(Debian 13) < 5.0.7-1~deb13u1; = 5.0.6-1 5.0.7-1~deb13u1 Fixed
debian/capstone(Debian 14) < 5.0.7-1; = 5.0.6-1; = 5.0.7-1~deb13u1 5.0.7-1 Fixed
redhat/capstone(Red Hat enterprise_linux 10.1) < 5.0.1-7.el10_1 5.0.1-7.el10_1 Fixed
redhat/capstone(Red Hat enterprise_linux 9) < 4.0.2-11.el9_7 4.0.2-11.el9_7 Fixed
redhat/capstone(Red Hat enterprise_linux_eus 10.0) < 5.0.1-7.el10_0 5.0.1-7.el10_0 Fixed
redhat/capstone(Red Hat rhel_e4s 9.0) < 4.0.2-5.el9_0 4.0.2-5.el9_0 Fixed
redhat/capstone(Red Hat rhel_e4s 9.2) < 4.0.2-11.el9_2 4.0.2-11.el9_2 Fixed
redhat/capstone(Red Hat rhel_eus 9.4) < 4.0.2-11.el9_4 4.0.2-11.el9_4 Fixed
redhat/capstone(Red Hat rhel_eus 9.6) < 4.0.2-11.el9_6 4.0.2-11.el9_6 Fixed
redhat/capstone-main(Red Hat hummingbird 1) < 5.0.7-0.1.hum1 5.0.7-0.1.hum1 Fixed

Affected products

ProductAffected versionsFixed in
azure linux rust(Azure Linux:3.0) All versions No fix listed
azure linux rust(Azure Linux:3.0) < 1.90.0-4 1.90.0-4
debian/capstone(Debian:12) All versions No fix listed
debian/capstone(Debian:12) = 4.0.2-5 No fix listed
debian/capstone(Debian:12) = 4.0.2-5.1 No fix listed
debian/capstone(Debian:12) = 5.0-1~exp1 No fix listed
debian/capstone(Debian:12) = 5.0.1-1~exp1 No fix listed
debian/capstone(Debian:12) = 5.0.3-1 No fix listed
debian/capstone(Debian:12) = 5.0.5-1 No fix listed
debian/capstone(Debian:12) = 5.0.6-1 No fix listed
debian/capstone(Debian:12) = 5.0.7-1 No fix listed
debian/capstone(Debian:12) = 5.0.7-1~deb13u1 No fix listed
debian/capstone(Debian:12) = 5.0.7-2 No fix listed
debian/capstone(Debian:12) = 5.0.9-1 No fix listed
debian/capstone(Debian:13) < 5.0.7-1~deb13u1 5.0.7-1~deb13u1
debian/capstone(Debian:13) = 5.0.6-1 No fix listed
debian/capstone(Debian:14) < 5.0.7-1 5.0.7-1
debian/capstone(Debian:14) = 5.0.6-1 No fix listed
debian/capstone(Debian:14) = 5.0.7-1~deb13u1 No fix listed
capstone-engine capstone = <= 6.0.0-Alpha5 No fix listed
ubuntu/capstone(Ubuntu:22.04) All versions No fix listed
redhat/capstone(Red Hat:enterprise_linux:10.1) < 5.0.1-7.el10_1 5.0.1-7.el10_1
redhat/capstone(Red Hat:enterprise_linux_eus:10.0) < 5.0.1-7.el10_0 5.0.1-7.el10_0
redhat/capstone(Red Hat:enterprise_linux:9) < 4.0.2-11.el9_7 4.0.2-11.el9_7
redhat/capstone(Red Hat:rhel_e4s:9.0) < 4.0.2-5.el9_0 4.0.2-5.el9_0
Show 15 more
ProductAffected versionsFixed in
redhat/capstone(Red Hat:rhel_e4s:9.2) < 4.0.2-11.el9_2 4.0.2-11.el9_2
redhat/capstone(Red Hat:rhel_eus:9.4) < 4.0.2-11.el9_4 4.0.2-11.el9_4
redhat/capstone(Red Hat:rhel_eus:9.6) < 4.0.2-11.el9_6 4.0.2-11.el9_6
redhat/capstone-main(Red Hat:hummingbird:1) < 5.0.7-0.1.hum1 5.0.7-0.1.hum1
alpine/capstone(Alpine:v3.23) < 5.0.7-r0 5.0.7-r0
alpine/capstone(Alpine:v3.24) < 5.0.7-r0 5.0.7-r0
ubuntu/capstone(Ubuntu:24.04) All versions No fix listed
ubuntu/capstone(Ubuntu:26.04) All versions No fix listed
ubuntu/capstone(Ubuntu:26.10) All versions No fix listed
capstone-engine capstone < 6.0.0 6.0.0
capstone-engine capstone = 6.0.0-alpha1 No fix listed
capstone-engine capstone = 6.0.0-alpha2 No fix listed
capstone-engine capstone = 6.0.0-alpha3 No fix listed
capstone-engine capstone = 6.0.0-alpha4 No fix listed
capstone-engine capstone = 6.0.0-alpha5 No fix listed

References