CVE-2019-7664: Denial of Service in elfutils
Summary
CVE-2019-7664: In elfutils 0.175, a negative-sized memcpy is attempted in elf_cvt_note in libelf/note_xlate.h because of an incorrect overflow check. Affects elfutils across 2 version ranges.
< 0.176-r0
< 4ea9a2db164caadf836a65d5cdffb09a2d5a37ce
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
Elfutils is a collection of utilities and libraries for handling ELF (Executable and Linkable Format) files. It provides various tools for analyzing and manipulating ELF files. This vulnerability affects the elfutils package in Alpine Linux versions 3.12 to 3.18. The vulnerability allows an attacker to cause a denial of service (program crash) by providing a crafted ELF input that triggers a segmentation fault.
Vulnerability Detail
The vulnerability (CVE-2019-7664) in elfutils 0.175 arises due to an incorrect overflow check in the elf_cvt_note function in libelf/note_xlate.h. This leads to a negative-sized memcpy operation, resulting in a segmentation fault when processing a specially crafted ELF file. The impact of this vulnerability is a denial of service, causing the affected program to crash. The vulnerability has a CVSSv3 score of 5.5, indicating a moderate severity.
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
There is no known workaround for this vulnerability. It is advised to apply the recommended fix by updating the elfutils package.
Conclusion
The CVE-2019-7664 vulnerability in elfutils can lead to a denial of service by crashing the affected program. It is important to update the elfutils package to the fixed version to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for elfutils →
FAQ
Elfutils is a collection of utilities and libraries for handling ELF files, which are commonly used executable and object file formats in Unix-like systems.
The vulnerability allows an attacker to cause a denial of service by crashing the affected program. This can lead to disruption of services or potential exploitation of other vulnerabilities.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your application or system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and it will provide real-time alerts for open-source vulnerabilities.
Yes, a fix is available for this vulnerability. It is recommended to update the elfutils package to version 0.176-r0 or later.
There are no known workarounds for this vulnerability. It is advised to apply the recommended fix by updating the elfutils package.
Related vulnerabilities
Recent vulnerabilities recorded for elfutils.