CVE-2017-13733
Medium · 6.5CVSS
6.5
EPSS
2.8%
Published
Aug 29, 2017
CISA due date
—
Cloudanix analysis
A flaw in a widely used text display library lets remote attackers crash programs by sending bad data, interrupting services until they are restarted.
- 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
Invalid memory address access in fmt_entry function triggers a crash, resulting in denial of service.
Why it matters to the business
Applications relying on the affected library can be remotely crashed, causing service outages and requiring restarts or workarounds.
How an attack unfolds
An attacker supplies specially crafted input that reaches the vulnerable fmt_entry function, triggering the illegal address access and crashing the process.
How to fix it
Upgrade gnu ncurses to a version newer than 6.0 that resolves the memory access flaw in progs/dump_entry.c; rebuild and redeploy any dependent applications.
How to confirm the fix worked
Confirm the installed ncurses version is newer than 6.0, recompile affected programs, and test with known triggering inputs to verify absence of crashes.
Typical attack path
- Identify a networked application or service that links against the vulnerable ncurses library
- Craft and send malicious input designed to exercise the dump_entry code path
- Trigger the fmt_entry function with the malformed data
- Cause process termination and service denial
How to detect it
Review application and system logs for abrupt process terminations involving ncurses or dump_entry; inspect core dumps or crash reports referencing fmt_entry for signs of prior exploitation.
What your security team should do
- Prioritize inventory of all systems using gnu ncurses 6.0 or earlier
- Apply the newest available ncurses package across the environment
- Rebuild and restart dependent services after upgrade
- Monitor for crash reports in applications that invoke dump_entry functionality
The record
There is an illegal address access in the fmt_entry function in progs/dump_entry.c in ncurses 6.0 that might lead to a remote denial of service attack.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.3 | ncurses | 0 | 6.0_p20170701-r0 |
| Alpine:v3.4 | ncurses | 0 | 6.0_p20170701-r0 |
| Alpine:v3.5 | ncurses | 0 | 6.0_p20170701-r0 |
| Alpine:v3.6 | ncurses | 0 | 6.0_p20170930-r0 |
| Debian:11 | ncurses | 0 | 6.0+20170902-1 |
| Debian:12 | ncurses | 0 | 6.0+20170902-1 |
| Debian:13 | ncurses | 0 | 6.0+20170902-1 |
| Mageia:6 | ncurses | 0 | 6.0-8.1.mga6 |
| SUSE:Linux Enterprise Desktop 12 SP2 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Server 11 SP4 | ncurses | 0 | 5.6-93.12.1 |
| SUSE:Linux Enterprise Server 11 SP4 | ncurses | 0 | 5.6-93.15.1 |
| SUSE:Linux Enterprise Server 12 SP2 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Server 12 SP2 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Server 12 SP3 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Server 12 SP3 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | ncurses | 0 | 5.6-93.12.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | ncurses | 0 | 5.6-93.15.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | ncurses | 0 | 5.6-93.12.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | ncurses | 0 | 5.6-93.15.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | ncurses | 0 | 5.9-58.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | ncurses | 0 | 5.9-55.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | ncurses | 0 | 5.9-58.1 |
| Ubuntu:18.04:LTS | ncurses | 0 | 6.1-1ubuntu1 |
| Ubuntu:Pro:14.04:LTS | ncurses | 0 | 5.9+20140118-1ubuntu1+esm1 |
| Ubuntu:Pro:16.04:LTS | ncurses | 0 | 6.0+20160213-1ubuntu1+esm1 |
Related vulnerabilities
- CVE-2017-13728 There is an infinite loop in the next_char function in comp_scan.c in ncurses 6.0… Also affects ncurses
- CVE-2017-13729 There is an illegal address access in the _nc_save_str function in alloc_entry.c in… Also affects ncurses
- CVE-2017-13734 There is an illegal address access in the _nc_safe_strcat function in strings.c in… Also affects ncurses
- CVE-2017-13730 There is an illegal address access in the function _nc_read_entry_source() in progs/tic.c… Also affects ncurses
- CVE-2017-13731 There is an illegal address access in the function postprocess_termcap() in parse_entry.c… Also affects ncurses
- CVE-2017-13732 There is an illegal address access in the function dump_uses() in progs/dump_entry.c in… Also affects ncurses
- CVE-2017-11112 In ncurses 6.0, there is an attempted 0xffffffffffffffff access in the append_acs… Also affects ncurses
- CVE-2017-11113 In ncurses 6.0, there is a NULL Pointer Dereference in the _nc_parse_entry function of… Also affects ncurses