Bug 1664700 (CVE-2018-20623) - CVE-2018-20623 binutils: Use-after-free in the error function
Summary: CVE-2018-20623 binutils: Use-after-free in the error function
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2018-20623
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1664713 1664714 1664715 1668405 1668406 1668407
Blocks: 1664716
TreeView+ depends on / blocked
 
Reported: 2019-01-09 13:36 UTC by Andrej Nemec
Modified: 2023-10-30 09:44 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-27 03:21:10 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2019-01-09 13:36:06 UTC
A use-after-free issues was found in the error function of binutils. A local attacker could use this for a denial of service.

Upstream issue:

https://sourceware.org/bugzilla/show_bug.cgi?id=24049

Comment 1 Andrej Nemec 2019-01-09 13:48:13 UTC
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]

Comment 3 Riccardo Schirone 2019-01-22 16:30:35 UTC
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.

Comment 5 Riccardo Schirone 2019-01-22 16:45:38 UTC
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.

Comment 7 Riccardo Schirone 2019-01-23 08:47:35 UTC
Statement:

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.


Note You need to log in before you can comment on or make changes to this bug.