Skip to content
Fencer Intel
critical 9.8

CVE-2015-4042 json

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 s…

published 2020-01-24 6 y ago modified 2026-06-17 4 mo ago also EUVD-2015-4070

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.3%
EPSS 2.3% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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.

Patch / fix

  • coreutils SLES for SAP 12, SLES 12, SLED 12 8.22-9.1

suse advisories SUSE-SU-2015:1637-1

  • coreutils openSUSE Tumbleweed 8.26-1.1

opensuse advisories openSUSE-SU-2024:10390-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2015-4042 updated cvss 3.7

coreutils: possible buffer overflow in keycompare_mb()

  • Red Hat Enterprise Linux 6 coreutils, coreutils-libs Red Hat Enterprise Linux 7 coreutils
    affected: workaround, no fix available “This flaw is triggered by using sort on specially crafted malicious data file. When using sort with trusted inputs, this flaw cannot be triggered.”
  • Red Hat Enterprise Linux 5 coreutils
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.30% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • openwall.com http://openwall.com/lists/oss-security/2015/05/15/1 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.