CVE-2017-11112
High · 7.5CVSS
7.5
EPSS
2.4%
Published
Jul 8, 2017
CISA due date
—
Cloudanix analysis
A programming error in a common text-handling library lets attackers crash certain applications by feeding them bad data files.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw triggers an attempted invalid memory access at address 0xffffffffffffffff inside the append_acs function of tinfo/parse_entry.c when the terminfo parser processes specially crafted input, causing a crash due to improper input validation.
Why it matters to the business
Applications that consume untrusted terminfo data through ncurses can be crashed remotely, leading to denial of service; the issue affects an ecosystem with 98 downstream dependents including certain TensorFlow deployments.
How an attack unfolds
An attacker crafts malicious terminfo data and supplies it to any application that uses the vulnerable ncurses library to parse terminfo entries; the malformed data reaches append_acs and triggers the out-of-bounds access, terminating the process.
How to fix it
Upgrade ncurses to a version after 6.0 and apply the listed fixed versions for affected products such as tensorflow (Bitnami) 2.1.4; rebuild any dependent applications against the patched library.
How to confirm the fix worked
Verify installed ncurses and dependent package versions against the fixed releases; test parsing of known-good and boundary terminfo files to confirm absence of crashes.
Typical attack path
- Identify an application that processes external or user-supplied terminfo data with ncurses
- Prepare a malformed terminfo entry that reaches the append_acs function
- Deliver the crafted data to trigger parsing
- Cause the invalid memory access resulting in application crash
How to detect it
Review application and system logs for sudden crashes or segmentation faults occurring during terminfo or terminal capability parsing; correlate with any external data ingestion points.
What your security team should do
- Prioritize patching of ncurses and listed dependents given the remote unauthenticated attack vector
- Audit software supply chains for any packages that embed or link ncurses for terminfo handling
- Implement input sanitization or sandboxing around terminfo processing until upgrades are complete
The record
In ncurses 6.0, there is an attempted 0xffffffffffffffff access in the append_acs function of tinfo/parse_entry.c. It could lead to a remote denial of service attack if the terminfo library code is used to process untrusted terminfo data.
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+20170701-1 |
| Debian:12 | ncurses | 0 | 6.0+20170701-1 |
| Debian:13 | ncurses | 0 | 6.0+20170701-1 |
| Mageia:5 | ncurses | 0 | 5.9-21.1.mga5 |
| Mageia:6 | ncurses | 0 | 6.0-8.1.mga6 |
| SUSE:Linux Enterprise Desktop 12 SP2 | ncurses | 0 | 5.9-50.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ncurses | 0 | 5.9-50.1 |
| SUSE:Linux Enterprise Server 11 SP4 | ncurses | 0 | 5.6-93.6.1 |
| SUSE:Linux Enterprise Server 12 SP2 | ncurses | 0 | 5.9-50.1 |
| SUSE:Linux Enterprise Server 12 SP3 | ncurses | 0 | 5.9-50.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | ncurses | 0 | 5.9-50.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | ncurses | 0 | 5.6-93.6.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | ncurses | 0 | 5.9-50.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ncurses | 0 | 5.9-50.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | ncurses | 0 | 5.6-93.6.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | ncurses | 0 | 5.9-50.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | ncurses | 0 | 5.9-50.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-13733 There is an illegal address access in the fmt_entry function in progs/dump_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-11113 In ncurses 6.0, there is a NULL Pointer Dereference in the _nc_parse_entry function of… Also affects ncurses