A use-after-free issues was found in the error function of binutils. A local attacker could use this for a denial of service.
Created binutils tracking bugs for this issue:
Affects: fedora-all [bug 1664713]
Created mingw-binutils tracking bugs for this issue:
Affects: epel-all [bug 1664715]
Affects: fedora-all [bug 1664714]
Function readelf.c:process_archive() uses filedata->file_name when printing errors, however until the file_name field is not properly initialized, it should not be accessed, otherwise it would access memory that is freed at the previous iteration.
The flaw was introduced with commit https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=dda8d76d0dd2b07df769f6cae20aff483468b342, thus RHEL 5, 6, 7 and Red Hat Developer Toolset 7 are not affected by this flaw.
This issue did not affect the versions of binutils as shipped with Red Hat Enterprise Linux 5, 6, and 7 as they did not include the vulnerable code, which was introduced in a newer version of the package.