CVE-2016-7151 Capstone SEGV caused by a read memory access

Medium 5.5 Published Updated

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.

PackageAffectedFixed in
capstone PyPIAll versions4.0.0
capstone PyPIAll versions4.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.

Sources

Also known as DEBIAN-CVE-2016-7151, GHSA-xx4j-rvcc-2vhr, UBUNTU-CVE-2016-7151.

Is CVE-2016-7151 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free