CVE-2026-55893
Beschrijving NL
Capstone is een demontage raamwerk. In 6.0.0-Alpha9 en eerder, roept Capstone's Arch/SH/SHDisassembler.c SH floating-point decoders zoals opFADD, opFMUL en opFSUB set_reg() en set_reg_n() aan met sh_info.op.op_count zonder de fixed-size operands[] array te controleren. Herhaalde bewerkte instructies verwerkt via cs_disasm_iter() of cs_disasm() met CS_ARCH_SH, CS_mode_SH2A of CS_mode_SH4A, CS_mode_SHFPU en CS_OPT_DETAIL kunnen de operandentelling verhogen tot boven de 176-byte sh_INFO-toewijzing en een heapbufferoverloop van vier bytes uitvoeren. De corruptie kan het proces laten crashen en kan de uitvoering van de code mogelijk maken, afhankelijk van de lay-out van de heap. Dit probleem is opgelost in versie 6.0.0-Alpha10.
Origineel (Engels) tonen
Capstone is a disassembly framework. In 6.0.0-Alpha9 and earlier, Capstone's arch/SH/SHDisassembler.c SH floating-point decoders such as opFADD, opFMUL, and opFSUB call set_reg() and set_reg_n() using sh_info.op.op_count without checking the fixed-size operands[] array. Repeated crafted instructions processed through cs_disasm_iter() or cs_disasm() with CS_ARCH_SH, CS_MODE_SH2A or CS_MODE_SH4A, CS_MODE_SHFPU, and CS_OPT_DETAIL can increment the operand count beyond the 176-byte sh_info allocation and perform a four-byte heap buffer overflow write. The corruption can crash the process and may enable code execution depending on heap layout. This issue is fixed in version 6.0.0-Alpha10.