Bug 2521130

Summary: CVE-2025-67873 rust: Capstone: Heap buffer overflow via skipdata callback allows denial of service or arbitrary code execution. [fedora-43]
Product: [Fedora] Fedora Reporter: Praise Ogwuche <pogwuche>
Component: rustAssignee: Rust SIG <rust-sig>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 43CC: amulhern, igor.raits, jchecahi, jistone, paumurph, rust-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["90e919ed-5d1b-42ff-b8d6-6bdcc5c92cd6"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-08-21 21:29:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2423419    

Description Praise Ogwuche 2026-08-21 19:29:18 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Josh Stone 2026-08-21 21:29:53 UTC
Capstone is only used by the miri tool, which we do not build or ship in any way. We even delete the bundled capstone sources in %prep.