CVE-2017-9742
High · 7.8CVSS
7.8
EPSS
8.1%
Published
Jun 19, 2017
CISA due date
—
Cloudanix analysis
A tool used to inspect program files can be tricked by a specially made file into crashing or letting an attacker take over the computer if someone opens that file with the tool.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in score_opcodes within the SCORE7 disassembler when processing a maliciously crafted binary, leading to memory corruption and potential arbitrary code execution or crash during objdump -D or similar operations.
Why it matters to the business
Developers and analysts using affected binutils packages risk tool crashes or full system compromise when examining untrusted binaries; the flaw has been public for years with available exploits, increasing exposure for any downstream build or reverse-engineering pipelines that have not upgraded.
How an attack unfolds
An attacker creates a specially malformed binary file that triggers the vulnerable SCORE7 opcode handler, then social-engineers or automates a victim into running objdump -D or equivalent analysis; the resulting overflow can be leveraged for code execution because the exploit is publicly available.
How to fix it
Upgrade request-1279-1-14 and request-1279-1-14-compat packages to version 1.14.1-r1 or later; rebuild any dependent images or containers and verify the new binutils version is in use before reprocessing untrusted binaries.
How to confirm the fix worked
Confirm package versions match the fixed releases, run objdump -D against known-bad test binaries in an isolated environment, and monitor for crashes or unexpected memory behavior during disassembly.
Typical attack path
- Craft malicious SCORE7 binary that overflows the opcode buffer
- Deliver the file to a target environment (email, repo, build artifact)
- Victim executes objdump -D or automated analysis pipeline on the file
- Overflow corrupts memory and executes attacker-controlled code or crashes the process
How to detect it
Search process execution logs and command history for objdump invocations against files with unusual sizes or entropy; look for segmentation faults or memory corruption signals in crash reports shortly after binary analysis tasks.
What your security team should do
- Immediately upgrade all listed Chainguard packages to the stated fixed versions
- Scan build pipelines and developer workstations for older binutils instances
- Add untrusted binary analysis to isolated or sandboxed environments only
- Review and update any automated objdump or disassembly jobs to use patched versions
The record
The score_opcodes function in opcodes/score7-dis.c in GNU Binutils 2.28 allows remote attackers to cause a denial of service (buffer overflow and application crash) or possibly have unspecified other impact via a crafted binary file, as demonstrated by mishandling of this file during "objdump -D" execution.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | binutils | 0 | 2.29-1 |
| Debian:11 | binutils | 0 | 2.29-1 |
| Debian:12 | binutils | 0 | 2.29-1 |
| Debian:13 | binutils | 0 | 2.29-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+esm2 |
| Ubuntu:Pro:16.04:LTS | binutils | 0 | 2.26.1-1ubuntu1~16.04.8+esm1 |
Related vulnerabilities
- 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-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