CVE-2017-11113
High · 7.5CVSS
7.5
EPSS
2.4%
Published
Jul 8, 2017
CISA due date
—
Cloudanix analysis
A flaw in how certain terminal-handling software reads untrusted configuration data can let an attacker crash the program from afar, causing temporary loss of service.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
NULL pointer dereference in _nc_parse_entry during terminfo parsing that crashes the process when untrusted terminfo data is supplied.
Why it matters to the business
Remote denial-of-service against any service that processes attacker-controlled terminfo data can produce unplanned outages and degraded availability on affected systems.
How an attack unfolds
An attacker crafts a malformed terminfo entry and causes the target application (via xorg-server or any ncurses consumer) to parse it, triggering the null dereference and process termination.
How to fix it
Upgrade xorg-server on Alpine v3.10 to version 1.19.5-r0 or later; rebuild or reinstall any packages that statically link the vulnerable ncurses terminfo code.
How to confirm the fix worked
Confirm the installed xorg-server package reports version 1.19.5-r0 or newer and that terminfo parsing of a test malformed entry no longer crashes the process.
Typical attack path
- Identify an entry point that ingests external terminfo data
- Prepare a malicious terminfo file containing the triggering sequence
- Deliver the file to the target process
- Trigger parsing to induce the crash
How to detect it
Review process crash logs and core dumps for segmentation faults occurring inside terminfo or ncurses parsing routines; correlate with inbound file or network transfers of .ti or terminfo content.
What your security team should do
- Apply the 1.19.5-r0 update immediately on all Alpine v3.10 hosts running xorg-server
- Scan for any custom or third-party applications that bundle ncurses 6.0 and schedule upgrades
- Add terminfo parsing to the list of untrusted-input surfaces monitored by application security testing
The record
In ncurses 6.0, there is a NULL Pointer Dereference in the _nc_parse_entry 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-11112 In ncurses 6.0, there is an attempted 0xffffffffffffffff access in the append_acs… Also affects ncurses