Bug 2521146 - CVE-2025-68114 ruby: Capstone: Memory corruption via unchecked vsnprintf return [fedora-43]
Summary: CVE-2025-68114 ruby: Capstone: Memory corruption via unchecked vsnprintf retu...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby
Version: 43
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Vít Ondruch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["18ccc59d-83a6-4a40-84de-3...
Depends On:
Blocks: CVE-2025-68114
TreeView+ depends on / blocked
 
Reported: 2026-08-21 19:53 UTC by Praise Ogwuche
Modified: 2026-08-24 10:00 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-08-24 10:00:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Praise Ogwuche 2026-08-21 19:53: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, an unchecked vsnprintf return in SStream_concat lets a malicious cs_opt_mem.vsnprintf drive SStream’s index negative or past the end, leading to a stack buffer underflow/overflow when the next write occurs. Commit 2c7797182a1618be12017d7d41e0b6581d5d529e fixes the issue.

Comment 1 Vít Ondruch 2026-08-24 10:00:01 UTC
Capstone is an optional Rust dependency used only behind the disasm Cargo feature in YJIT/ZJIT. This feature is not enabled in Fedora Ruby builds and capstone is not built, linked, or shipped.

Ref :
https://github.com/ruby/ruby/blob/09fdc3bed9bd0bff37c7a56ef38964654a599e87/yjit/Cargo.toml#L15
https://github.com/ruby/ruby/blob/09fdc3bed9bd0bff37c7a56ef38964654a599e87/yjit/src/disasm.rs#L162-L216


Note You need to log in before you can comment on or make changes to this bug.