Hide Forgot
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
(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.