CVE-2017-15023
Medium · 5.5CVSS
5.5
EPSS
2.1%
Published
Oct 5, 2017
CISA due date
—
Cloudanix analysis
A problem in certain tools that examine binary files can make those tools stop working if they are given a specially prepared file.
- 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
Improper validation of format count in read_formatted_entries within dwarf2.c of libbfd leads to a NULL pointer dereference and application crash when processing a malformed ELF file.
Why it matters to the business
Processing of untrusted binary files with affected tools can trigger unexpected crashes, disrupting build, debug, or analysis workflows that depend on binutils components.
How an attack unfolds
An attacker crafts an ELF file containing an invalid format count value that triggers the dereference path in concat_filename handling; the file is then supplied to a victim who invokes an affected binary-analysis utility, causing the crash.
How to fix it
Upgrade confluent-docker-utils (Chainguard) and confluent-docker-utils (Wolfi) to version 0.0.82-r1 or later; rebuild any dependent containers or images to incorporate the patched library.
How to confirm the fix worked
Confirm installed package versions match or exceed the fixed releases; attempt to process a test ELF file known to trigger the original crash path and verify the application no longer terminates.
Typical attack path
- Craft a minimal ELF file with an invalid format count field
- Deliver the file through email, download, or shared storage
- Victim executes a tool linked against the vulnerable libbfd on the file
- Application dereferences NULL and terminates
How to detect it
Review application and system logs for segmentation faults or abrupt terminations while processing ELF files; correlate crash timestamps with user-initiated binary analysis activity.
What your security team should do
- Apply the listed package upgrades across all build and CI environments
- Scan container images for older versions of confluent-docker-utils
- Add binary-file parsing to the list of untrusted inputs requiring sandboxing or validation
The record
read_formatted_entries in dwarf2.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.29, does not properly validate the format count, which allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted ELF file, related to concat_filename.
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 |
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