Bug 1435640 (CVE-2017-6965)

Summary: CVE-2017-6965 binutils: Heap-based buffer overflow in target_specific_reloc_handling in readelf
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: erik-fedora, fedora-mingw, jakub, klember, nickc, ohudlick, rjones, sardella, yozone, yselkowi
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the readelf utility; part of binutils. A crafted ELF executable or shared library could cause readelf to write arbitrary locations on the heap while processing relocations, leading to a crash or potential code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 11:52:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1435307, 1435308, 1435309    
Bug Blocks: 1435650    

Description Adam Mariš 2017-03-24 12:36:22 UTC
readelf in GNU Binutils 2.28 writes to illegal addresses while processing corrupt input files containing symbol-difference relocations, leading to a heap-based buffer overflow.

Upstream bug:

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

Upstream patch:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=03f7786e2f440b9892b1c34a58fb26222ce1b493

Comment 1 Adam Mariš 2017-03-24 12:58:28 UTC
Created mingw-binutils tracking bugs for this issue:

Affects: epel-all [bug 1435309]

Comment 4 Doran Moppert 2017-05-30 04:42:19 UTC
Statement:

Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.