Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1435182 - (CVE-2016-10255) CVE-2016-10255 elfutils: Memory allocation failure in __libelf_set_rawdata_wrlock (elf_getdata.c)
CVE-2016-10255 elfutils: Memory allocation failure in __libelf_set_rawdata_wr...
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20161109,reported=2...
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-23 06:47 EDT by Andrej Nemec
Modified: 2017-08-07 04:23 EDT (History)
13 users (show)

See Also:
Fixed In Version: elfutils 0.168
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-03-23 06:50:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrej Nemec 2017-03-23 06:47:44 EDT
A vulnerability was found in elfutils. A maliciously crafted ELF file could cause a very large allocation failure.

References:

https://blogs.gentoo.org/ago/2016/11/04/elfutils-memory-allocation-failure-in-__libelf_set_rawdata_wrlock-elf_getdata-c/
http://seclists.org/oss-sec/2016/q4/367
Comment 1 Mark Wielaard 2017-03-23 07:04:35 EDT
(In reply to Andrej Nemec from comment #0)
> A vulnerability was found in elfutils. A maliciously crafted ELF file could
> cause the application to crash.

Note that it real bug wasn't a crash but a possibly very large allocation failure. Normally the application would get E_ELF_NOMEM as error value (except when malloc was overridden as in the fuzzing example). The fix was to make the code first check whether the allocation size made sense and if not return ELF_E_INVALID_SECTION_HEADER early instead of trying to allocate the memory.

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