CVE-2021-32434
Description
abcm2ps v8.14.11 has an out-of-bounds read in calculate_beam() in draw.c, leading to a crash when processing malformed ABC music files.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
abcm2ps v8.14.11 has an out-of-bounds read in calculate_beam() in draw.c, leading to a crash when processing malformed ABC music files.
Vulnerability
The vulnerability is an out-of-bounds read in calculate_beam() in draw.c of abcm2ps version 8.14.11 [1]. The function accesses the two-dimensional array min_tb using (unsigned) s->nflags as an index without first verifying that s->nflags is within the valid range (0–5). When the input is crafted so that s->nflags holds a value such as 0xfffffffe, the computed index is out of bounds, causing a read beyond the allocated memory for the array [1].
Exploitation
To trigger the vulnerability, an attacker must supply to abcm2ps a specially crafted ABC music file that produces a value of s->nflags outside the intended range when the calculate_beam() function is called during rendering [1]. The exploit requires no special privileges; the attacker only needs to convince a user to process the malformed file with the affected version of abcm2ps. The reproduction steps provided in the reference show that when s->nflags is 0xfffffffe, the access min_tb[0][(unsigned) s->nflags] attempts to read an invalid memory address, causing the program to crash [1].
Impact
Successful exploitation results in a denial of service (DoS) due to a segmentation fault or crash of abcm2ps [1]. The out-of-bounds read may also expose snippets of sensitive memory, but the primary reported impact is a crash. The vulnerability does not appear to allow code execution or privilege escalation based on the available information.
Mitigation
As of the available references, no official patch for abcm2ps version 8.14.11 has been provided [1]. The repository has been archived and is now read-only, indicating that the software is no longer actively maintained [1]. Users should consider discontinuing use of the affected version or applying a manual fix by adding a bounds check on s->nflags before indexing min_tb. No CISA KEV listing or other workaround has been published.
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
4- abcm2ps/abcm2psdescription
- osv-coords3 versionspkg:rpm/opensuse/abcm2ps&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/abcm2ps&distro=openSUSE%20Tumbleweedpkg:rpm/suse/abcm2ps&distro=SUSE%20Package%20Hub%2015%20SP3
< 8.14.13-bp153.2.3.1+ 2 more
- (no CPE)range: < 8.14.13-bp153.2.3.1
- (no CPE)range: < 8.14.13-2.1
- (no CPE)range: < 8.14.13-bp153.2.3.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
6- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6333SXWMES3K22DBAOAW34G6EU6WIJEY/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EVGJH4HMXI3TWMHQJQCG3M7KSXJWJM7R/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YTF4FXCW22FFB5HNQO3GK3F4FFBLTZKE/mitrevendor-advisoryx_refsource_FEDORA
- github.com/leesavide/abcm2ps/commit/2f56e1179cab6affeb8afa9d6c324008fe40d8e3mitrex_refsource_MISC
- github.com/leesavide/abcm2ps/issues/83mitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2022/04/msg00015.htmlmitremailing-listx_refsource_MLIST
News mentions
0No linked articles in our index yet.