CVE-2017-17123
Medium · 5.5CVSS
5.5
EPSS
1.6%
Published
Dec 4, 2017
CISA due date
—
Cloudanix analysis
A flaw in file processing tools can cause them to crash when opening certain specially made files, potentially interrupting work that depends on those tools.
- 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 in the coff_slurp_reloc_table function of the BFD library, triggered by processing a specially crafted COFF file, resulting in an application crash.
Why it matters to the business
Tools relying on the vulnerable Binutils library may crash when processing malicious files, leading to denial of service and potential disruption in build or analysis workflows. Updates are required in affected packages like src-fingerprint to maintain operational stability.
How an attack unfolds
An attacker creates a malformed COFF file and delivers it to a target system where it is processed by an application using the vulnerable libbfd, causing the crash.
How to fix it
Update src-fingerprint (Chainguard) to 0.19.0-r10 or later and src-fingerprint (Wolfi) to 0.19.0-r10 or later. Rebuild or replace any affected binaries that depend on vulnerable versions of GNU Binutils.
How to confirm the fix worked
Verify installed package versions meet or exceed the fixed releases. Test processing of known malicious COFF samples to confirm absence of crashes.
Typical attack path
- Craft a malicious COFF file exploiting the NULL dereference
- Deliver the file to the victim via email, download, or shared storage
- Victim opens or processes the file with a vulnerable tool or library
- Application crashes due to the dereference
How to detect it
Review system logs and crash reports for application failures involving the BFD library or Binutils when handling COFF files. Correlate file access timestamps with crash events.
What your security team should do
- Prioritize updating affected packages to the specified fixed versions immediately
- Inventory and scan environments for instances of vulnerable Binutils
- Establish automated checks for library versions in build pipelines
The record
The coff_slurp_reloc_table function in coffcode.h in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.29.1, allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted COFF based 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 |
| 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-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
- CVE-2017-17080 elf.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU… Also affects binutils