Cloudanix VulnDB

CVE-2017-11112

High · 7.5

CVSS

7.5

EPSS

2.4%

Published

Jul 8, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Identify an application that processes external or user-supplied terminfo data with ncurses
  2. Prepare a malformed terminfo entry that reaches the append_acs function
  3. Deliver the crafted data to trigger parsing
  4. 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