CVE-2016-7151 Capstone SEGV caused by a read memory access
An out-of-bounds read in the Capstone disassembly library can cause a segmentation fault, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2016-7151?
CVE-2016-7151 is a medium-severity memory corruption vulnerability in n/a, published on 15 May 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Capstone 3.0.4 has an out-of-bounds vulnerability (SEGV caused by a read memory access) in X86_insn_reg_intel in arch/X86/X86Mapping.c.
Weakness: CWE-125
Which versions are affected by CVE-2016-7151?
2 open source packages ship an affected version, including capstone. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
capstone PyPI | All versions | 4.0.0 |
capstone PyPI | All versions | 4.0.0 |
Products include Capstone-Engine Capstone.
How do I fix CVE-2016-7151?
Upgrade capstone to 4.0.0 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2016-7151 being exploited?
There is no known exploitation of CVE-2016-7151 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2017-6952 Capstone Integer overflow
- CVE-2026-47143 Capstone has a NULL Pointer Dereference with 3DNow! opcodes
- CVE-2025-67873 Capstone doesn't check Skipdata length, leading to cs_insn.bytes heap buffer overflow
- CVE-2025-68114 Capstone doesn't check vsnprintf return in SStream_concat, allows stack buffer underflow and overflow
Sources
Also known as DEBIAN-CVE-2016-7151, GHSA-xx4j-rvcc-2vhr, UBUNTU-CVE-2016-7151.