Advisory

DEBIAN-CVE-2021-41253

Also known as: CVE-2021-41253

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 8.1, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-11-08 22:15 UTC
Modified
2026-10-23 18:03 UTC

Affected packages and fixes

zydis

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 3.2.1-1 (ecosystem)

Fixed versions

3.2.1-1

Fix

  • Fixed version 3.2.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

zydis

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 3.2.1-1 (ecosystem)

Fixed versions

3.2.1-1

Fix

  • Fixed version 3.2.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

zydis

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 3.2.1-1 (ecosystem)

Fixed versions

3.2.1-1

Fix

  • Fixed version 3.2.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences