CVE-2021-45078
Description
Heap buffer overflow in stab_xcoff_builtin_type in GNU Binutils through 2.37 allows denial of service via malformed input.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Heap buffer overflow in stab_xcoff_builtin_type in GNU Binutils through 2.37 allows denial of service via malformed input.
Vulnerability
An out-of-bounds write vulnerability exists in the stab_xcoff_builtin_type function within stabs.c of GNU Binutils through version 2.37. The flaw is a heap-based buffer overflow that arises from an incomplete fix for CVE-2018-12699. An attacker can trigger the vulnerability by providing a crafted binary file that, when processed by Binutils tools (such as objdump or readelf), causes the vulnerable code path to write beyond allocated heap memory.
Exploitation
Exploitation requires an attacker to supply a specially crafted object file or executable that includes malformed stabs debugging information. The victim must then process the file using a Binutils tool that exercises the stab_xcoff_builtin_type function. No authentication or special privileges are needed beyond the ability to run the affected tool on the malicious file, typical of user-assisted exploitation scenarios where the target opens a file from an untrusted source.
Impact
Successful exploitation results in a heap-based buffer overflow, leading to a denial of service (program crash or memory corruption). The official description notes the possibility of additional impacts beyond denial of service, though the nature of those has not been publicly detailed. The CVSS v3.1 base score is 7.8, indicating high severity, with the attack vector being local (the attacker must have the ability to load the file).
Mitigation
The fix is included in Binutils version 2.38, released on 2022-01-29 [3]. Users of affected versions (through 2.37) should upgrade to 2.38 or later. Gentoo published a security advisory (GLSA 202208-30) recommending that all Binutils users upgrade to >= sys-devel/binutils-2.38 and >= sys-libs/binutils-libs-2.38 [3]. No workarounds are available other than updating. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
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
79- GNU/Binutilsdescription
- osv-coords77 versionspkg:rpm/opensuse/binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/binutils&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/cross-aarch64-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-aarch64-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-arm-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-arm-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-avr-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-avr-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-epiphany-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-epiphany-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-hppa64-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-hppa64-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-hppa-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-hppa-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-i386-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-i386-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-ia64-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-ia64-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-m68k-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-m68k-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-mips-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-mips-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-ppc64-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-ppc64-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-ppc64le-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-ppc64le-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-ppc-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-ppc-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-riscv64-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-riscv64-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-rx-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-rx-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-s390-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-s390-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-s390x-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-s390x-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-sparc64-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-sparc64-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-sparc-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-sparc-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-spu-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-spu-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cross-x86_64-binutils&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/cross-x86_64-binutils&distro=openSUSE%20Leap%2015.4pkg:rpm/suse/binutils&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/binutils&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOSpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCLpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/binutils&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/binutils&distro=SUSE%20Manager%20Proxy%204.1pkg:rpm/suse/binutils&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1pkg:rpm/suse/binutils&distro=SUSE%20Manager%20Server%204.1pkg:rpm/suse/binutils&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/binutils&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209pkg:rpm/suse/cross-ppc-binutils&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/cross-spu-binutils&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5
< 2.39-150100.7.40.1+ 76 more
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-2.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-150100.7.40.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-9.50.1
- (no CPE)range: < 2.39-9.50.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
5- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UQBH244M5PV6S6UMHUTCVCWFZDX7Y4M6/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UUHLDDT3HH7YEY6TX7IJRGPJUTNNVEL3/mitrevendor-advisoryx_refsource_FEDORA
- security.gentoo.org/glsa/202208-30mitrevendor-advisoryx_refsource_GENTOO
- security.netapp.com/advisory/ntap-20220107-0002/mitrex_refsource_CONFIRM
- sourceware.org/bugzilla/show_bug.cgimitrex_refsource_MISC
News mentions
0No linked articles in our index yet.