{"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-04-10T04:29:15.798490Z","published":"2021-03-26T17:15:12.920Z","related":["ALSA-2021:4364","MGASA-2021-0341","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"],"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"},{"introduced":"0"},{"last_affected":"1f1c02597cc199227226251a2ea51fe5f44b4d6d"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.35"},{"introduced":"0"},{"last_affected":"8.0"}]}}],"versions":["binutils-2_35","gdb-4_18-branchpoint","gdb-7.10-branchpoint","gdb-7.11-branchpoint","gdb-7.12-branchpoint","gdb-7.7-branchpoint","gdb-7.8-branchpoint","gdb-7.9-branchpoint","gdb-8.0-branchpoint","gdb-8.0-release","gdb-8.1-branchpoint","gdb-8.2-branchpoint","gdb-8.3-branchpoint","gdb-9-branchpoint","gdb_5_2-branchpoint","gdb_5_3-branchpoint","gdb_6_0-branchpoint","gdb_6_1-branchpoint","gdb_6_2-branchpoint","gdb_6_3-branchpoint","gdb_6_4-branchpoint","gdb_6_5-branchpoint","gdb_6_6-branchpoint","gdb_6_7-branchpoint","gdb_6_8-branchpoint","gdb_7_0-branchpoint","gdb_7_1-branchpoint","gdb_7_2-branchpoint","gdb_7_3-branchpoint","gdb_7_4-branchpoint","gdb_7_5-branchpoint","gdb_7_6-branchpoint","users/ARM/embedded-binutils-master-2016q4","users/ARM/embedded-binutils-master-2017q4","users/ARM/embedded-binutils-master-2018q4","users/ARM/embedded-gdb-master-2017q4","users/ARM/embedded-gdb-master-2018q4"],"database_specific":{"source":"https://storage.googleapis.com/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"}]}