CVE-2021-20294 Memory corruption in binutils

High 7.8 Published Updated

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 6All versions2.37-7.26.1
binutils SUSE:HPE Helion OpenStack 8All versions2.37-9.44.1
binutils SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions2.37-7.26.1
binutils SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions2.37-7.26.1
binutils SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions2.37-7.26.1
binutils SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions2.37-7.26.1
binutils SUSE:Linux Enterprise Module for Development Tools 15 SP2All versions2.37-7.26.1
binutils SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions2.37-7.26.1
binutils SUSE:Linux Enterprise Module for Package Hub 15 SP2All versions2.37-7.26.1
binutils SUSE:Linux Enterprise Module for Package Hub 15 SP3All versions2.37-7.26.1
binutils SUSE:Linux Enterprise Server 12 SP2-BCLAll versions2.37-9.44.1
binutils SUSE:Linux Enterprise Server 12 SP3-BCLAll versions2.37-9.44.1
binutils SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions2.37-9.44.1
binutils SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions2.37-9.44.1
binutils SUSE:Linux Enterprise Server 12 SP5All versions2.37-9.44.1
binutils SUSE:Linux Enterprise Server 15 SP1-BCLAll versions2.37-7.26.1
binutils SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions2.37-7.26.1
binutils SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions2.37-9.44.1
binutils SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions2.37-9.44.1
binutils SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions2.37-9.44.1
binutils SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions2.37-7.26.1
binutils SUSE:Linux Enterprise Software Development Kit 12 SP5All versions2.37-9.44.1
cross-ppc-binutils SUSE:Linux Enterprise Software Development Kit 12 SP5All versions2.37-9.44.1
cross-spu-binutils SUSE:Linux Enterprise Software Development Kit 12 SP5All versions2.37-9.44.1
binutils SUSE:OpenStack Cloud 8All versions2.37-9.44.1
binutils SUSE:OpenStack Cloud 9All versions2.37-9.44.1
binutils SUSE:OpenStack Cloud Crowbar 8All versions2.37-9.44.1
binutils SUSE:OpenStack Cloud Crowbar 9All versions2.37-9.44.1
binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-aarch64-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-arm-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-avr-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-epiphany-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-hppa-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-hppa64-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-i386-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-ia64-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-m68k-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-mips-binutils openSUSE:Leap 15.3All versions2.37-7.26.1
cross-ppc-binutils openSUSE:Leap 15.3All versions2.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.

All Gnu Binutils vulnerabilities

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.

Is CVE-2021-20294 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free