Skip to content
OpenAdvisories
Medium · 6.3 CVE-2021-20197 EUVD-2021-7643GHSA-rq67-5wpf-96wv

There is an open race window when writing output in the following utilities in GNU binutils version 2.35 and earlier:ar, objcopy, strip, ra…

Published Mar 26, 2021 · Updated Dec 3, 2025 · Assigned by redhat

Description

There is an open race window when writing output in the following utilities in GNU binutils version 2.35 and earlier:ar, objcopy, strip, ranlib. When these utilities are run as a privileged user (presumably as part of a script updating binaries across different users), an unprivileged user can trick these utilities into getting ownership of arbitrary files through a symlink.

Affected products

VendorProductAffectedFixed
— binutils binutils 2.35 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 binutils 2.37-3 —
Debian 13 binutils 2.37-3 —
Debian 12 binutils 2.37-3 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS binutils No fix yet —
Ubuntu Pro 18.04 LTS binutils No fix yet —
Ubuntu Pro 16.04 LTS binutils No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS binutils No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 binutils +1 2.30-108.el8 RHSA-2021:4364

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 binutils-devel 2.30-108.el8 ALSA-2021:4364

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 binutils 2.30-108.el8 RLSA-2021:4364
ReleasePackageFixed inAdvisory
SLES 15 SP3 binutils 2.37-7.21.2 SUSE-SU-2021:3616-1
SLES 15 SP3 bpftrace 0.11.4-3.2.1 SUSE-SU-2021:3616-1
SLES 15 SP2 binutils 2.37-7.21.2 SUSE-SU-2021:3616-1
SLES 15 SP1 binutils 2.37-7.21.2 SUSE-SU-2021:3616-1
SLES 15 binutils 2.37-6.23.1 SUSE-SU-2022:0934-1
SLES 12 SP5 binutils +2 2.37-9.39.1 SUSE-SU-2021:3593-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SLES 12 SP3 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SLES 12 SP2 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SLES for SAP 15 SP1 binutils 2.37-7.21.2 SUSE-SU-2021:3616-1
SLES for SAP 15 binutils 2.37-6.23.1 SUSE-SU-2022:0934-1
SLES for SAP 12 SP5 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SLES for SAP 12 SP4 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SLES for SAP 12 SP3 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SLE HPC 15 SP1 binutils 2.37-7.21.2 SUSE-SU-2021:3616-1
SLE HPC 15 binutils 2.37-6.23.1 SUSE-SU-2022:0934-1
SUSE OpenStack Cloud Crowbar 9 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SUSE OpenStack Cloud Crowbar 8 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SUSE OpenStack Cloud 9 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SUSE OpenStack Cloud 8 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SUSE HPE Helion OpenStack 8 binutils 2.37-9.39.1 SUSE-SU-2021:3593-1
SUSE Enterprise Storage 6 binutils 2.37-7.21.2 SUSE-SU-2021:3616-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed binutils 2.37-1.3 openSUSE-SU-2024:10651-1
openSUSE Leap 15.3 binutils 2.37-7.21.2 openSUSE-SU-2021:3616-1
openSUSE Leap 15.3 bpftrace 0.11.4-3.2.1 openSUSE-SU-2021:3616-1
openSUSE Leap 15.3 cross-rx-binutils +20 2.37-7.21.1 openSUSE-SU-2021:3616-1
openSUSE Leap 15.2 binutils +21 2.37-lp152.4.9.1 openSUSE-SU-2021:1475-1
openSUSE Leap 15.2 bpftrace 0.11.4-lp152.2.7.1 openSUSE-SU-2021:1475-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 crash 8.0.4-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 binutils +1 2.30-108.0.2.el8 ELSA-2021-4364

Advisories 10

References