NULL Pointer Dereference Affecting capstone package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-CAPSTONE-18172618
  • published22 Jul 2026
  • disclosed22 Jul 2026
  • creditUnknown

Introduced: 22 Jul 2026

NewCVE-2026-47143  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference through modRMRequired() and decode() in arch/X86/X86DisassemblerDecoder.c. An attacker can crash any application using a reduced X86 Capstone build by supplying crafted x86/x86-64 input containing a 3DNow! opcode sequence such as 0F 0F <modrm> <imm8>. When those opcodes reach the decode path, the unsupported opcode type is left unhandled, and the disassembler dereferences a null decision table, terminating the process during disassembly.

Notes

  • The crash is specific to reduced X86 builds compiled with -DCAPSTONE_X86_REDUCE, where the 3DNow! opcode map is not handled in the vulnerable modRMRequired() and decode() paths.
  • Affected inputs are the 0F 0F <modrm> <imm8> 3DNow! escape sequence; normal x86/x86-64 code paths that do not reach that opcode family are not part of this issue.

Workarounds

  • Use a Capstone build without -DCAPSTONE_X86_REDUCE when disassembling untrusted x86/x86-64 input, or disable the reduced X86 build in your deployment; this avoids the THREEDNOW_MAP path that leads to the NULL dereference and process crash.

CVSS Base Scores

version 4.0
version 3.1