CVE-2021-41253 Details
Description
Zydis is an x86/x86-64 disassembler library. Users of Zydis versions v3.2.0 and older that use the string functions provided in `zycore` in order to append untrusted user data to the formatter buffer within their custom formatter hooks can run into heap buffer overflows. Older versions of Zydis failed to properly initialize the string object within the formatter buffer, forgetting to initialize a few fields, leaving their value to chance. This could then in turn cause zycore functions like `ZyanStringAppend` to make incorrect calculations for the new target size, resulting in heap memory corruption. This does not affect the regular uncustomized Zydis formatter, because Zydis internally doesn't use the string functions in zycore that act upon these fields. However, because the zycore string functions are the intended way to work with the formatter buffer for users of the library that wish to extend the formatter, we still consider this to be a vulnerability in Zydis. This bug is patched starting in version 3.2.1. As a workaround, users may refrain from using zycore string functions in their formatter hooks until updating to a patched version.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zyantific/zydis/commit/55dd08c210722aed81b38132f5fd4a04ec1943b5 | CVE | PatchThird Party Advisory |
| https://github.com/zyantific/zydis/security/advisories/GHSA-q42v-hv86-3m4g | CVE | Third Party Advisory |
| https://huntr.dev/bounties/96b0a482-7041-45b1-9327-c6a4a8f32d3a | CVE | ExploitThird Party Advisory |
| https://huntr.dev/bounties/d2536d7d-36ce-4723-928c-98d1ee039784 | CVE | ExploitPatchThird Party Advisory |
| https://github.com/zyantific/zydis/commit/55dd08c210722aed81b38132f5fd4a04ec1943b5 | [email protected] | PatchThird Party Advisory |
| https://github.com/zyantific/zydis/security/advisories/GHSA-q42v-hv86-3m4g | [email protected] | Third Party Advisory |
| https://huntr.dev/bounties/96b0a482-7041-45b1-9327-c6a4a8f32d3a | [email protected] | ExploitThird Party Advisory |
| https://huntr.dev/bounties/d2536d7d-36ce-4723-928c-98d1ee039784 | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-908 | Use of Uninitialized Resource | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
| CWE-457 | Use of Uninitialized Variable | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| zyantific zydis | <= 3.2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Oct 24, 2022 | Reanalysis | [email protected] |
| Nov 15, 2021 | Initial Analysis | [email protected] |