CVE-2021-20294 Memory corruption in binutils
An attacker can trigger a stack buffer overflow in binutils readelf by convincing a victim to process a crafted file, potentially leading to arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-20294?
CVE-2021-20294 is a high-severity memory corruption vulnerability in Gnu Binutils, published on 29 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
A flaw was found in binutils readelf 2.35 program. An attacker who is able to convince a victim using readelf to read a crafted file could trigger a stack buffer overflow, out-of-bounds write of arbitrary data supplied by the attacker. The highest impact of this flaw is to confidentiality, integrity, and availability.
Weakness: CWE-787
Which versions are affected by CVE-2021-20294?
It affects 1 product.
Linux distribution packages (40)
binutils SUSE:Enterprise Storage 6 | All versions | 2.37-7.26.1 |
binutils SUSE:HPE Helion OpenStack 8 | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Module for Basesystem 15 SP2 | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Module for Development Tools 15 SP2 | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Module for Development Tools 15 SP3 | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Module for Package Hub 15 SP2 | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Module for Package Hub 15 SP3 | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise Server 12 SP3-BCL | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise Server 12 SP3-LTSS | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise Server 12 SP5 | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise Server 15 SP1-BCL | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 2.37-9.44.1 |
binutils SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 2.37-7.26.1 |
binutils SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 2.37-9.44.1 |
cross-ppc-binutils SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 2.37-9.44.1 |
cross-spu-binutils SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 2.37-9.44.1 |
binutils SUSE:OpenStack Cloud 8 | All versions | 2.37-9.44.1 |
binutils SUSE:OpenStack Cloud 9 | All versions | 2.37-9.44.1 |
binutils SUSE:OpenStack Cloud Crowbar 8 | All versions | 2.37-9.44.1 |
binutils SUSE:OpenStack Cloud Crowbar 9 | All versions | 2.37-9.44.1 |
binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-aarch64-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-arm-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-avr-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-epiphany-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-hppa-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-hppa64-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-i386-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-ia64-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-m68k-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-mips-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
cross-ppc-binutils openSUSE:Leap 15.3 | All versions | 2.37-7.26.1 |
Products include Gnu Binutils.
How do I fix CVE-2021-20294?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-20294 being exploited?
There is no known exploitation of CVE-2021-20294 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Gnu Binutils
Sources
Also known as DEBIAN-CVE-2021-20294, GHSA-rrj7-qm3x-w26v, SUSE-SU-2021:3637-1, SUSE-SU-2021:3643-1, openSUSE-SU-2021:3643-1, openSUSE-SU-2024:11634-1.