CVE-2017-15024
Medium · 5.5CVSS
5.5
EPSS
1.6%
Published
Oct 5, 2017
CISA due date
—
Cloudanix analysis
Certain build tools can be made to crash by specially crafted files, causing temporary disruption until the software is updated.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A flaw in find_abstract_instance_name within dwarf2.c of libbfd allows a specially crafted ELF file to trigger unbounded recursion, exhausting stack resources and crashing the process.
Why it matters to the business
Build and container tooling can be forced offline by untrusted input files, interrupting software supply-chain pipelines and requiring manual restarts or rollbacks until patches are applied.
How an attack unfolds
An attacker crafts a malformed ELF file containing recursive DWARF information, then supplies it to an affected binary such as buildctl or buildkitd; the library enters infinite recursion on parsing and terminates the application.
How to fix it
Upgrade buildkitd and buildctl packages in Chainguard and Wolfi environments to version 0.12.5-r0 or later; rebuild any dependent container images after the update.
How to confirm the fix worked
Confirm installed package versions match the fixed releases, then attempt to process a known-triggering ELF file in a controlled environment to verify absence of crash behavior.
Typical attack path
- Obtain or generate a malicious ELF file with crafted DWARF sections
- Deliver the file to an affected build tool via local filesystem or build context
- Trigger parsing of the ELF during normal operation
- Observe process crash due to stack exhaustion
How to detect it
Review process crash logs and core dumps from buildkitd or buildctl for stack-overflow signatures when ELF files are processed; correlate with build job timestamps and input file hashes.
What your security team should do
- Apply the 0.12.5-r0 updates to all Chainguard and Wolfi buildkitd and buildctl instances immediately
- Scan build pipelines for any local ELF processing that could accept untrusted inputs
- Add version pinning and automated update checks to prevent regression to vulnerable releases
The record
find_abstract_instance_name in dwarf2.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 (infinite recursion and application crash) via a crafted ELF file.
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