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.
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Link | Tags |
---|---|
https://bugzilla.redhat.com/show_bug.cgi?id=1913743 | issue tracking third party advisory patch |
https://sourceware.org/bugzilla/show_bug.cgi?id=26945 | issue tracking third party advisory patch |
https://security.netapp.com/advisory/ntap-20210528-0009/ | third party advisory |
https://security.gentoo.org/glsa/202208-30 | third party advisory vendor advisory |