CVE-2017-17122
High · 7.8CVSS
7.8
EPSS
1.9%
Published
Dec 4, 2017
CISA due date
—
Cloudanix analysis
A long-known flaw in a common binary inspection tool can let specially made files crash the program or potentially allow malicious code to run when someone analyzes them.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in reloc count handling within dump_relocs_in_section allows excessive memory allocation or heap buffer overflow when objdump processes a crafted PE binary.
Why it matters to the business
Crashes or potential code execution in binary analysis tooling can interrupt build pipelines, malware research, or automated scanning workflows; the issue has been public for years with available exploits but remains low-prevalence.
How an attack unfolds
An attacker constructs a PE file containing reloc entries engineered to trigger an integer overflow, then supplies the file to objdump (directly or via automated tooling); the resulting overflow leads to memory corruption or resource exhaustion.
How to fix it
Upgrade the affected package to the fixed version grafana-fips-10.3 (Chainguard) 10.3.6-r3 or later; rebuild any containers or images that embed the vulnerable Binutils component.
How to confirm the fix worked
Verify the installed version of objdump or the containing package reports 10.3.6-r3 or newer; re-test with known triggering PE samples in a controlled environment.
Typical attack path
- Craft PE file with oversized or malformed reloc counts
- Deliver file to target environment or user
- Invoke objdump (or dependent tool) against the file
- Trigger integer overflow during section relocation dump
- Achieve denial of service or attempt further memory corruption
How to detect it
Review process execution logs and crash reports for objdump invocations on untrusted PE files; look for sudden memory spikes or segmentation faults during relocation processing in build or forensic systems.
What your security team should do
- Apply the 10.3.6-r3 update immediately on all build, CI, and analysis hosts
- Scan internal artifact repositories for binaries built with the vulnerable objdump
- Add objdump version checks to container image scanning policies
- Monitor EPSS and exploit availability for any future increase in observed activity
The record
The dump_relocs_in_section function in objdump.c in GNU Binutils 2.29.1 does not check for reloc count integer overflows, which allows remote attackers to cause a denial of service (excessive memory allocation, or heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted PE 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:20.04:LTS | binutils | 0 | 2.34-6ubuntu1 |
| Ubuntu:22.04:LTS | binutils | 0 | 2.38-2ubuntu1 |
| Ubuntu:Pro:14.04:LTS | binutils | 0 | 2.24-5ubuntu14.2+esm5 |
| Ubuntu:Pro:16.04:LTS | binutils | 0 | 2.26.1-1ubuntu1~16.04.8+esm3 |
| Ubuntu:Pro:16.04:LTS | binutils | 0 | 2.26.1-1ubuntu1~16.04.8+esm9 |
| Ubuntu:Pro:18.04:LTS | binutils | 0 | 2.30-21ubuntu1~18.04.9+esm3 |
Related vulnerabilities
- CVE-2017-9742 The score_opcodes function in opcodes/score7-dis.c in GNU Binutils 2.28 allows remote… Also affects binutils
- CVE-2016-2226 Integer overflow in the string_appends function in cplus-dem.c in libiberty allows remote… Also affects binutils
- CVE-2012-3509 Multiple integer overflows in the (1) _objalloc_alloc function in objalloc.c and (2)… Also affects binutils
- CVE-2006-2362 Buffer overflow in getsym in tekhex.c in libbfd in Free Software Foundation GNU Binutils… Also affects binutils
- CVE-2005-4807 Stack-based buffer overflow in the as_bad function in messages.c in the GNU as (gas)… Also affects binutils
- CVE-2024-57360 https://www.gnu.org/software/binutils/ nm >=2.43 is affected by: Incorrect Access Control. Also affects binutils
- CVE-2024-53589 GNU objdump 2.43 is vulnerable to Buffer Overflow in the BFD (Binary File Descriptor)… Also affects binutils
- CVE-2014-8501 The _bfd_XXi_swap_aouthdr_in function in bfd/peXXigen.c in GNU binutils 2.24 and earlier… Also affects binutils