CVE-2021-32614

NameCVE-2021-32614
DescriptionA flaw was found in dmg2img through 20170502. fill_mishblk() does not check the length of the read buffer, and copy 0xCC bytes from it. The length of the buffer is controlled by an attacker. By providing a length smaller than 0xCC, memcpy reaches out of the malloc'ed bound. This possibly leads to memory layout information leaking in the data. This might be used in a chain of vulnerability in order to reach code execution.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs989008

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
dmg2img (PTS)bookworm, bullseye, sid, trixie1.6.7-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
dmg2imgsource(unstable)(unfixed)unimportant989008

Notes

https://github.com/Lekensteyn/dmg2img/issues/11
Crash in CLI tool, no security impact

Search for package or bug name: Reporting problems