CVE-2017-15021
Medium · 5.5CVSS
5.5
EPSS
2.0%
Published
Oct 5, 2017
CISA due date
—
Cloudanix analysis
A flaw in tools that read certain binary files can make those tools crash when they open a specially made file, interrupting work until the tools are updated.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read in the BFD library when parsing a crafted ELF file, resulting in application crash.
Why it matters to the business
Build and binary analysis tools that process untrusted ELF files can be forced to crash, interrupting development pipelines and forensic workflows until the affected component is updated.
How an attack unfolds
An attacker crafts a malicious ELF file that triggers the buffer over-read in bfd_get_debug_link_info_1; when a user or automated process opens the file with an affected version of a tool using libbfd, the application crashes.
How to fix it
Upgrade goreleaser-1.18 (Chainguard) and goreleaser-1.18 (Wolfi) to version 1.18.2-r12 or later; rebuild any downstream containers or packages that embed the vulnerable Binutils components.
How to confirm the fix worked
Verify installed package versions match the fixed releases; attempt to process a known-triggering ELF sample in a test environment and confirm no crash occurs.
Typical attack path
- Attacker creates a malformed ELF file designed to exercise the vulnerable path in opncls.c.
- Victim or automated system processes the file using a tool linked against the vulnerable BFD library.
- The over-read occurs, causing immediate denial of service via crash.
How to detect it
Review process crash logs and application fault records around the time untrusted ELF files were processed; look for segmentation faults originating from BFD library functions.
What your security team should do
- Immediately update all instances of the affected goreleaser packages to the listed fixed versions.
- Scan build pipelines and CI systems for any direct or transitive use of vulnerable Binutils libraries.
- Add ELF file sanitization or sandboxing for any remaining unpatched analysis workflows.
The record
bfd_get_debug_link_info_1 in opncls.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.29, allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file, related to bfd_getl32.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | binutils | 0 | 2.29.90.20180122-1 |
| Debian:11 | binutils | 0 | 2.29.90.20180122-1 |
| Debian:12 | binutils | 0 | 2.29.90.20180122-1 |
| Debian:13 | binutils | 0 | 2.29.90.20180122-1 |
| Mageia:6 | binutils | 0 | 2.32-1.1.mga6 |
| Ubuntu:18.04:LTS | binutils | 0 | 2.30-21ubuntu1~18.04.1 |
| Ubuntu:Pro:14.04:LTS | binutils | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | binutils | 0 | 2.26.1-1ubuntu1~16.04.8+esm1 |
Related vulnerabilities
- CVE-2021-3826 Heap/stack buffer overflow in the dlang_lname function in d-demangle.c in libiberty… Also affects binutils
- CVE-2022-38533 In GNU Binutils before 2.40, there is a heap-buffer-overflow in the error function… Also affects binutils
- CVE-2017-17122 The dump_relocs_in_section function in objdump.c in GNU Binutils 2.29.1 does not check… Also affects binutils
- CVE-2017-17123 The coff_slurp_reloc_table function in coffcode.h in the Binary File Descriptor (BFD)… Also affects binutils
- CVE-2017-17124 The _bfd_coff_read_string_table function in coffgen.c in the Binary File Descriptor (BFD)… Also affects binutils
- CVE-2017-17125 nm.c and objdump.c in GNU Binutils 2.29.1 mishandle certain global symbols, which allows… Also affects binutils
- CVE-2017-17126 The load_debug_section function in readelf.c in GNU Binutils 2.29.1 allows remote… Also affects binutils
- CVE-2017-17121 The Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils… Also affects binutils