CVE-2017-15025
Medium · 5.5CVSS
5.5
EPSS
1.8%
Published
Oct 5, 2017
CISA due date
—
Cloudanix analysis
A problem in tools that read program files can make those tools crash when they encounter certain specially made files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A crafted ELF file triggers a divide-by-zero in decode_line_info within libbfd's dwarf2.c handling, resulting in an application crash.
Why it matters to the business
Processing of untrusted or attacker-supplied binary files can cause crashes in build, debug, or analysis tools, interrupting development workflows and requiring restarts or workarounds.
How an attack unfolds
An attacker creates a malformed ELF containing invalid DWARF line information that forces a zero divisor during parsing; when a user or automated process opens the file with an affected Binutils-based tool, the application terminates.
How to fix it
Upgrade affected redka packages to the fixed versions: redka (Chainguard) 0.4.0-r1 or later and redka (Wolfi) 0.4.0-r1 or later. Rebuild any dependent images or containers after the upgrade.
How to confirm the fix worked
Confirm the installed package version meets or exceeds the listed fixed releases, then test processing of known-malformed ELF samples to verify absence of crashes.
Typical attack path
- Craft an ELF file containing malformed DWARF line tables that trigger division by zero
- Deliver the file to a target environment via download, package, or shared storage
- Induce the victim process or user to invoke a Binutils utility such as objdump or readelf on the file
- Observe application crash and denial of service
How to detect it
Monitor application and system logs for unexpected crashes or segmentation faults when processing ELF files; review process core dumps or stack traces referencing dwarf2.c or decode_line_info for signs of prior exploitation attempts.
What your security team should do
- Apply the 0.4.0-r1 updates to redka packages immediately in all build and CI environments
- Inventory systems that consume ELF files with Binutils tooling and prioritize upgrades
- Add automated scanning of third-party binaries in pipelines to block malformed inputs
The record
decode_line_info 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 (divide-by-zero error 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