Cloudanix VulnDB

CVE-2017-11113

High · 7.5

CVSS

7.5

EPSS

2.4%

Published

Jul 8, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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.

Exploit Available
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

  1. Identify an entry point that ingests external terminfo data
  2. Prepare a malicious terminfo file containing the triggering sequence
  3. Deliver the file to the target process
  4. 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