Cloudanix VulnDB

CVE-2015-4042

Critical · 9.8

CVSS

9.8

EPSS

2.3%

Published

Jan 24, 2020

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in a basic system tool that handles text sorting could let attackers crash programs by feeding them very long pieces of text.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Application
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflow in keycompare_mb allows long strings to trigger application crash or unspecified further impact during sorting operations.

Why it matters to the business

Systems relying on affected utilities may experience unexpected crashes or instability when processing untrusted long inputs, potentially disrupting data processing workflows across many deployments.

How an attack unfolds

An attacker supplies a crafted long string as input to the vulnerable sort function, triggering the integer overflow in keycompare_mb to cause denial of service or attempt further exploitation.

How to fix it

Upgrade libvncserver on Debian 11, 12, and 13 to version 0.9.11+dfsg-1.2 or later; apply equivalent patches for any downstream Coreutils components.

How to confirm the fix worked

Verify package versions match the fixed releases and test sorting operations with long strings to confirm no crash occurs.

Typical attack path

  1. Locate a system running an affected version of the utility
  2. Craft a maliciously long input string
  3. Feed the string to the sort operation via command line or integrated application
  4. Trigger the overflow leading to crash or additional impact

How to detect it

Review system logs for segmentation faults or crashes involving sort or libvncserver processes when handling large inputs; check application error logs for keycompare_mb related failures.

What your security team should do

  • Prioritize patching all instances to the specified fixed versions immediately
  • Scan environments for any remaining vulnerable Coreutils or libvncserver packages
  • Monitor for unusual crashes in sorting-related processes

The record

Integer overflow in the keycompare_mb function in sort.c in sort in GNU Coreutils through 8.23 might allow attackers to cause a denial of service (application crash) or possibly have unspecified other impact via long strings.

Affected packages

Ecosystem Package Introduced Fixed
Mageia:4 coreutils 0 8.21-6.2.mga4
SUSE:Linux Enterprise Desktop 12 coreutils 0 8.22-9.1
SUSE:Linux Enterprise Server 12 coreutils 0 8.22-9.1
SUSE:Linux Enterprise Server for SAP Applications 12 coreutils 0 8.22-9.1
openSUSE:Tumbleweed coreutils 0 8.26-1.1

Related vulnerabilities