CVE-2021-20197

Name
CVE-2021-20197
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
Issue Tracking https://bugzilla.redhat.com/show_bug.cgi?id=1913743
Issue Tracking https://sourceware.org/bugzilla/show_bug.cgi?id=26945
CONFIRM https://security.netapp.com/advisory/ntap-20210528-0009/

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:gnu:binutils:*:*:*:*:*:*:*:* binutils >= None <= 2.35

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
binutils 3.12-main 2.34-r2 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
binutils 3.11-main 2.33.1-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable
binutils 3.10-main 2.32-r1 Natanael Copa <ncopa@alpinelinux.org> possibly vulnerable