CVE Database›CVE-2015-4041

CVE-2015-4041

coreutils: heap buffer overflow in sort(1) keycompare_mb()

Loading…

Severity

Low

Red Hat Product Security

3.7

CVSS 2.0

Review impact separately from score.

Published · April 27, 2015

Updated · November 22, 2025

Description

The keycompare_mb function in sort.c in sort in GNU Coreutils through 8.23 on 64-bit platforms performs a size calculation without considering the number of bytes occupied by multibyte characters, which allows attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via long UTF-8 strings.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

This flaw is triggered by using sort on specially crafted malicious data file. When using sort with trusted inputs, this flaw cannot be triggered.

CVSS / CWE

CVSS 2.0 · 3.7
AV:L/AC:H/Au:N/C:P/I:P/A:P

CWE-122 · Heap-based Buffer Overflow