Heap-Based Buffer Over-Read in elfutils Package Leading to Denial of Service
Summary
ALPINE-CVE-2019-7665: In elfutils 0.175, a heap-based buffer over-read was discovered in the function elf32_xlatetom in elf32_xlatetom.c in libelf. Affects elfutils versions < 0.176-r0. Fixed in 0.176-r0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The elfutils package is a collection of utilities and libraries for handling ELF (Executable and Linkable Format) files, which are commonly used in Unix-like operating systems. It provides tools for inspecting and manipulating ELF files, making it essential for developers and system administrators working with binary executables. The package is widely utilized due to its efficiency and comprehensive feature set. However, a vulnerability has been identified that can lead to severe consequences if exploited.
Vulnerability Detail
In elfutils version 0.175, a heap-based buffer over-read was discovered in the function elf32_xlatetom located in elf32_xlatetom.c within the libelf library. This vulnerability arises from the failure of the ebl_core_note function to reject malformed core file notes. An attacker can craft a malicious ELF input that triggers this vulnerability, resulting in a segmentation fault and causing the program to crash. The potential ramifications include denial of service, as the affected application may become unresponsive or terminate unexpectedly.
How To Fix
Minimum fixed version
0.176-r0
This is the first release that contains the fix.
sudo apk add --upgrade elfutils
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, you can avoid processing untrusted ELF files or implement input validation to ensure that only well-formed ELF files are processed by your application. This can help prevent the exploitation of this vulnerability until a patch is applied.
Conclusion
The elfutils package has a critical vulnerability that can lead to denial of service due to a heap-based buffer over-read. It is essential for users to update to the patched version to mitigate risks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for elfutils →
FAQ
The CVSS score of this vulnerability is 5.5, indicating a moderate severity level.
The vulnerability affects elfutils versions prior to 0.176-r0 across multiple Alpine Linux versions.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
Exploitation of this vulnerability can lead to a denial of service, causing the affected application to crash and become unresponsive.
Yes, the permanent fix is to update the elfutils package to version 0.176-r0 or later, which addresses the vulnerability.
References
Related vulnerabilities
Recent vulnerabilities recorded for elfutils.