Red Hat Bugzilla – Bug 1260158
Specially crafted binary can cause readelf to read from an arbitrary address-
Last modified: 2017-01-03 09:16:33 EST
+++ This bug was initially created as a clone of Bug #1260035 +++
+++ This bug was initially created as a clone of Bug #1260034 +++
[ Creating a clone for RHEL 7 as well. ]
Description of problem:
Readelf can be fooled into attempting to read from an arbitrary memory location if it is run against a specially crafted binary.
Version-Release number of selected component (if applicable):
Run "readelf -a test00-min'
The bug has been fixed in the upstream FSF sources. The patch can be found here:
Created attachment 1122435 [details]
Patch to harden readelf against this type of corrupt binary
This is the patch needed to fix this problem.
Patch checked in. Moved to MODIFIED
Verified for build binutils-2.25.1-19.base.el7.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.