CVE-2017-17126
High · 7.8CVSS
7.8
EPSS
1.7%
Published
Dec 4, 2017
CISA due date
—
Cloudanix analysis
A problem in a common program that inspects executable files can make systems crash or behave unexpectedly when they are given a specially crafted file, so organizations should install the available software updates.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The load_debug_section function in readelf.c performs invalid memory access when parsing an ELF binary that omits section headers, resulting in a crash or potential further memory corruption.
Why it matters to the business
Systems that ship or invoke the affected readelf binary can experience unexpected application crashes during file analysis; because the flaw is years old and present in certain minio container images, organizations must apply the listed package updates to avoid operational disruption and limit exposure to memory-safety issues.
How an attack unfolds
An attacker crafts a minimal ELF file that lacks section headers, then causes a victim to invoke the vulnerable readelf binary on that file; successful exploitation can produce a denial of service or, depending on surrounding memory layout, other unspecified effects.
How to fix it
Upgrade the affected minio packages to the versions that contain the corrected binutils: minio (Chainguard) 0.20231220.010002-r3, minio (Wolfi) 0.20231220.010002-r3, minio-bitnami-2024-compat (Chainguard) 0.20231220.010002-r3, and minio-bitnami-2024-compat (Wolfi) 0.20231220.010002-r3. Rebuild and redeploy any images that embed the older binutils package.
How to confirm the fix worked
Inspect the version string of the installed binutils package inside each minio image and confirm it matches or exceeds the listed fixed releases; additionally run readelf against a test ELF lacking section headers and verify the process no longer crashes.
Typical attack path
- Generate an ELF file that contains no section headers
- Place or deliver the file to a location reachable by the target process
- Trigger execution of the vulnerable readelf binary against the file
- Observe crash or attempt to leverage resulting memory state
How to detect it
Review process execution logs and crash reports for invocations of readelf or objdump against ELF files; correlate with file-creation timestamps and look for repeated segmentation faults originating from the binutils readelf binary in affected minio deployments.
What your security team should do
- Immediately update all listed minio variants to the supplied fixed versions
- Scan container registries and build pipelines for any remaining images that depend on binutils 2.29.1 or earlier
- Add package-version checks to CI pipelines to prevent reintroduction of the vulnerable binutils
- Monitor EPSS and exploit-availability feeds for any future increase in observed usage
The record
The load_debug_section function in readelf.c in GNU Binutils 2.29.1 allows remote attackers to cause a denial of service (invalid memory access and application crash) or possibly have unspecified other impact via an ELF file that lacks section headers.
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 |
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-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