CVE-2015-4042
Critical · 9.8CVSS
9.8
EPSS
2.3%
Published
Jan 24, 2020
CISA due date
—
Cloudanix analysis
A bug in a basic system tool that handles text sorting could let attackers crash programs by feeding them very long pieces of text.
- 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
- Locate a system running an affected version of the utility
- Craft a maliciously long input string
- Feed the string to the sort operation via command line or integrated application
- 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
- CVE-2015-4041 The keycompare_mb function in sort.c in sort in GNU Coreutils through 8.23 on 64-bit… Also affects coreutils
- CVE-2014-9471 The parse_datetime function in GNU coreutils allows remote attackers to cause a denial of… Also affects coreutils
- CVE-2025-5278 A flaw was found in GNU Coreutils. Also affects coreutils
- CVE-2016-7545 SELinux policycoreutils allows local users to execute arbitrary commands outside of the… Also affects coreutils
- CVE-2026-108324 Tanium addressed a denial of service vulnerability in Tanium Client. CWE-190
- CVE-2026-121219 Integer overflow in GPU in Google Chrome prior to 157.0.8103.38 allowed a remote attacker… CWE-190
- CVE-2026-121382 A vulnerability was determined in Netcore NBR100V2 1.3.240614.030928. CWE-190
- CVE-2026-120954 A weakness in the BSON library's handling of a specialized binary vector data type allows… CWE-190