CVE-2017-15022
Medium · 5.5CVSS
5.5
EPSS
2.0%
Published
Oct 5, 2017
CISA due date
—
Cloudanix analysis
A flaw in certain command-line tools can make them crash when they try to read a specially made file, which may interrupt software builds or analysis 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
The vulnerability is a NULL pointer dereference or out-of-bounds access in libbfd's dwarf2.c DWARF parser (scan_unit_for_symbols and parse_comp_unit) when processing an ELF file containing an invalid DW_AT_name data type, causing the application to crash.
Why it matters to the business
Tools that parse ELF binaries may crash when handling attacker-supplied files, interrupting build pipelines, debugging sessions, or binary analysis workflows that rely on the affected packages.
How an attack unfolds
An attacker crafts a malicious ELF file embedding invalid DW_AT_name attributes, then supplies the file to a victim process using an unpatched version of the BFD library; opening or analyzing the file triggers the crash in the DWARF symbol scanner.
How to fix it
Upgrade the listed packages to the fixed versions: tctl (Chainguard) 1.18.1-r2, tctl (Wolfi) 1.18.1-r2, tctl-authorization-plugin (Chainguard) 1.18.1-r2, tctl-authorization-plugin (Wolfi) 1.18.1-r2, tctl-authorization-plugin-compat (Chainguard) 1.18.1-r2, tctl-authorization-plugin-compat (Wolfi) 1.18.1-r2, tctl-compat (Chainguard) 1.18.1-r2, tctl-compat (Wolfi) 1.18.1-r2. Rebuild any dependent artifacts after the update.
How to confirm the fix worked
Confirm the installed package versions match the fixed releases above, then attempt to process a known-good ELF file with the updated binaries to verify no regression in normal operation.
Typical attack path
- Create a specially crafted ELF binary with malformed DW_AT_name entries
- Deliver the file to a target system or process that invokes affected tctl or Binutils components
- Trigger parsing via normal tool usage such as symbol inspection or linking
- Cause bfd_hash_hash to dereference NULL or access invalid memory, crashing the process
How to detect it
Review process crash logs and core dumps for segmentation faults occurring during ELF or DWARF symbol parsing; look for repeated failures when processing untrusted binary files in build or analysis pipelines.
What your security team should do
- Apply the 1.18.1-r2 updates to all affected tctl packages immediately
- Scan build and CI systems for any pinned older versions of these packages
- Add automated dependency checks to prevent future use of vulnerable releases
The record
dwarf2.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.29, does not validate the DW_AT_name data type, which allows remote attackers to cause a denial of service (bfd_hash_hash NULL pointer dereference, or out-of-bounds access, and application crash) via a crafted ELF file, related to scan_unit_for_symbols and parse_comp_unit.
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