Cloudanix VulnDB

CVE-2017-15671

Medium · 5.9

CVSS

5.9

EPSS

1.4%

Published

Oct 20, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in a core system library can cause programs to slowly use up all available memory when handling certain file name patterns, potentially crashing services until the library is updated.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
High
Impact
Denial Of Service
Component
Library
Class
Denial of service
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The glob function in glibc before 2.27 skips freeing allocated memory when GLOB_TILDE is used with an excessively long username, causing a memory leak that can lead to denial of service via exhaustion.

Why it matters to the business

Systems relying on affected glibc versions risk gradual memory exhaustion and service outages when processing certain filename patterns, with older deployments facing higher exposure due to the vulnerability's age and widespread use of glibc.

How an attack unfolds

An attacker supplies a crafted string beginning with a tilde followed by a long username to any application calling glob with the GLOB_TILDE flag, triggering repeated allocation without corresponding frees and eventually exhausting available memory.

How to fix it

Upgrade the GNU C Library to version 2.27 or later on all affected systems; rebuild and restart any statically linked applications that embed the vulnerable glibc.

How to confirm the fix worked

Confirm the installed glibc version is 2.27 or newer via package manager or ldd --version; test the glob function with GLOB_TILDE and long usernames to verify memory usage remains stable.

Typical attack path

  1. Identify an application or service on the target that invokes glob with GLOB_TILDE enabled
  2. Craft input containing '~' followed by a username exceeding typical length limits
  3. Submit the input repeatedly to the vulnerable code path
  4. Monitor memory consumption until the process or system becomes unresponsive

How to detect it

Review process memory growth patterns correlated with calls involving tilde expansion; examine application logs for repeated glob operations on user-controlled strings.

What your security team should do

  • Prioritize patching glibc to 2.27+ on internet-facing and high-value systems within standard maintenance windows
  • Inventory all applications using glob or filename expansion to identify exposure scope
  • Monitor memory usage trends on critical services that handle user-supplied patterns
  • Apply compensating controls such as input length restrictions where immediate upgrades are not feasible

The record

The glob function in glob.c in the GNU C Library (aka glibc or libc6) before 2.27, when invoked with GLOB_TILDE, could skip freeing allocated memory when processing the ~ operator with a long user name, potentially leading to a denial of service (memory leak).

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 glibc 0 2.25-3
Debian:11 glibc 0 2.25-3
Debian:12 glibc 0 2.25-3
Debian:13 glibc 0 2.25-3
Mageia:5 glibc 0 2.20-26.mga5
Mageia:5 libtirpc 0 0.2.5-3.3.mga5
Mageia:6 glibc 0 2.22-26.mga6
Mageia:6 libtirpc 0 1.0.1-5.1.mga6
SUSE:Linux Enterprise Desktop 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Desktop 12 SP3 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Point of Sale 11 SP3 glibc 0 2.11.3-17.110.24.2
SUSE:Linux Enterprise Server 11 SP3-LTSS glibc 0 2.11.3-17.110.24.2
SUSE:Linux Enterprise Server 11 SP3-TERADATA glibc 0 2.11.3-17.110.24.2
SUSE:Linux Enterprise Server 11 SP4 glibc 0 2.11.3-17.110.24.2
SUSE:Linux Enterprise Server 12 SP1-LTSS glibc 0 2.19-40.16.950
SUSE:Linux Enterprise Server 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Server 12 SP3 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Server 12-LTSS glibc 0 2.19-22.27.958
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 glibc 0 2.11.3-17.110.24.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 glibc 0 2.19-40.16.950
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Software Development Kit 11 SP4 glibc 0 2.11.3-17.110.24.2
SUSE:Linux Enterprise Software Development Kit 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Software Development Kit 12 SP3 glibc 0 2.22-62.3.4
Ubuntu:16.04:LTS glibc 0 2.23-0ubuntu11
Ubuntu:18.04:LTS glibc 0 2.27-3ubuntu1
Ubuntu:Pro:14.04:LTS eglibc 0 No fix

Related vulnerabilities