{"id":"CVE-2021-20197","details":"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.","modified":"2026-05-18T05:52:39.849630179Z","published":"2021-03-26T17:15:12.920Z","related":["ALSA-2021:4364","SUSE-SU-2021:3593-1","SUSE-SU-2021:3616-1","SUSE-SU-2022:0934-1","openSUSE-SU-2021:1475-1","openSUSE-SU-2021:3616-1","openSUSE-SU-2024:10651-1"],"database_specific":{"unresolved_ranges":[{"vendor_product":"redhat:enterprise_linux","cpes":["cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"],"source":"CPE_FIELD","extracted_events":[{"last_affected":"8.0"}]}]},"references":[{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202208-30"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20210528-0009/"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1913743"},{"type":"FIX","url":"https://sourceware.org/bugzilla/show_bug.cgi?id=26945"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://sourceware.org/git/binutils-gdb.git","events":[{"introduced":"0"},{"last_affected":"2cb5c79dad39dd438fb0f7372ac04cf5aa2a7db7"}],"database_specific":{"source":"CPE_FIELD","cpe":"cpe:2.3:a:gnu:binutils:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"2.35"}]}}],"versions":["binutils-2_35","gdb-9-branchpoint","gdb-8.3-branchpoint","users/ARM/embedded-gdb-master-2018q4","users/ARM/embedded-binutils-master-2018q4","gdb-8.2-branchpoint","gdb-8.1-branchpoint","users/ARM/embedded-gdb-master-2017q4","users/ARM/embedded-binutils-master-2017q4","gdb-8.0-branchpoint","users/ARM/embedded-binutils-master-2016q4","gdb-7.12-branchpoint","gdb-7.11-branchpoint","gdb-7.10-branchpoint","gdb-7.9-branchpoint","gdb-7.8-branchpoint","gdb-7.7-branchpoint","gdb_7_6-branchpoint","gdb_7_5-branchpoint","gdb_7_4-branchpoint","gdb_7_3-branchpoint","gdb_7_2-branchpoint","gdb_7_1-branchpoint","gdb_7_0-branchpoint","gdb_6_8-branchpoint","gdb_6_7-branchpoint","gdb_6_6-branchpoint","gdb_6_5-branchpoint","gdb_6_4-branchpoint","gdb_6_3-branchpoint","gdb_6_2-branchpoint","gdb_6_1-branchpoint","gdb_6_0-branchpoint","gdb_5_3-branchpoint","gdb_5_2-branchpoint","gdb-4_18-branchpoint"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-20197.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}