cve.bz

CVE-2021-45078 Out-of-bounds Write

7.8 highExploit referenceEPSS 1.4%Fix available

High (7.8). EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
stab_xcoff_builtin_type in stabs.c in GNU Binutils through 2.37 allows attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact, as demonstrated by an out-of-bounds write. NOTE: this issue exists because of an incorrect fix for CVE-2018-12699.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-45078 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-45078?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-45078?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-45078 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:binutilsthrough 2.37
fedoraproject:fedora34
fedoraproject:fedora35
redhat:enterprise_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14binutils2.37.50.20220106-1DEBIAN-CVE-2021-45078
Ubuntu20.04:LTSbinutils2.34-6ubuntu1.6UBUNTU-CVE-2021-45078 USN-6160-1
UbuntuPro:14.04:LTS, Pro:18.04:LTSbinutilsno fix listedUBUNTU-CVE-2021-45078
UbuntuPro:16.04:LTSbinutils2.26.1-1ubuntu1~16.04.8+esm3UBUNTU-CVE-2021-45078 USN-5341-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 18 morebinutils2.39-150100.7.40.1SUSE-SU-2022:4146-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 5 morebinutils2.39-9.50.1SUSE-SU-2022:4277-1
SUSELinux Enterprise Software Development Kit 12 SP5binutils, cross-ppc-binutils, cross-spu-binutils2.39-9.50.1SUSE-SU-2022:4277-1
openSUSELeap 15.3, Leap 15.4binutils, cross-rx-binutils, cross-arm-binutils and 19 more2.39-150100.7.40.1SUSE-SU-2022:4146-1
openSUSETumbleweedbinutils2.39-2.1openSUSE-SU-2024:12631-1
Azure Linux2binutils2.37-3AZL-7032

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The issue is classified as moderate severity primarily because binutils is not typically exposed to untrusted inputs in most environments, limiting its exploitation potential. Moreover, binutils does not handle privileged operations, meaning exploitation is unlikely to lead to system compromise or escalation of privileges. Additionally, the impact is localized to the application itself, without affecting the broader system or network security.

As per upstream binutils security policy this issue is not considered as a security flaw. Basically the key element of the policy that affects this is the understanding that analysis of untrusted binaries must always be done in a sandbox because the ELF format is open ended enough to make the analysis tools do anything, like including and processing arbitrary files. This eliminates the only possible vulnerability vector here, which is the possibility of a user being tricked into downloading and analyzing an untrusted ELF without sandboxing.

See the binutils security policy for more details:

https://sourceware.org/cgit/binutils-gdb/tree/binutils/SECURITY.txt

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6binutilsOut of support scope
Red Hat Enterprise Linux 7binutilsOut of support scope
Red Hat Enterprise Linux 8binutilsWill not fix
Red Hat Enterprise Linux 8gcc-toolset-10-binutilsWill not fix
Red Hat Enterprise Linux 8gcc-toolset-11-binutilsWill not fix
Red Hat Enterprise Linux 8gcc-toolset-9-binutilsWill not fix
Red Hat Enterprise Linux 8mingw-binutilsNot affected
Red Hat Enterprise Linux 9binutilsWill not fix
Red Hat Enterprise Linux 9mingw-binutilsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-45078.

References

Check your stackJSON