CVE-2021-41253

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-41253
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41253.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41253
Related
Published
2021-11-08T22:15:16Z
Modified
2025-01-15T02:05:15.486822Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:12 / zydis

Package

Name
zydis
Purl
pkg:deb/debian/zydis?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / zydis

Package

Name
zydis
Purl
pkg:deb/debian/zydis?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/zyantific/zydis

Affected ranges

Type
GIT
Repo
https://github.com/zyantific/zydis
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

v1.*

v1.0.0
v1.0.1

v2.*

v2.0.0
v2.0.0-alpha1
v2.0.0-alpha2
v2.0.0-beta1
v2.0.1
v2.0.2

v3.*

v3.0.0
v3.1.0
v3.2.0