CVE-2015-4042
published 2020-01-24CVE-2015-4042: 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…
PriorityP338critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
2.32%
81.6th percentile
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
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | coreutils | — | — |
| gnu | coreutils | <= 8.23 | — |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
vendor_debian9.8LOW
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
coreutils: possible buffer overflow in keycompare_mb()
vendor_redhat·2015-04-27·CVSS 9.8
CVE-2015-4042 [CRITICAL] CWE-119 coreutils: possible buffer overflow in keycompare_mb()
coreutils: possible buffer overflow in keycompare_mb()
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.
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.
Package: coreutils (Red Hat Enterprise Linux 5) - Not affected
Package: coreutils (Red Hat Enterprise Linux 6) - Affected
Package: coreutils (Red Hat Enterprise Linux 7) - Affected
Debian
CVE-2015-4042: coreutils - Integer overflow in the keycompare_mb function in sort.c in sort in GNU Coreutil...
vendor_debian·2015·CVSS 9.8
CVE-2015-4042 [CRITICAL] CVE-2015-4042: coreutils - Integer overflow in the keycompare_mb function in sort.c in sort in GNU Coreutil...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
GHSA
GHSA-9qcx-32pg-7pqp: Integer overflow in the keycompare_mb function in sort
ghsa_unreviewed·2022-05-24
CVE-2015-4042 [CRITICAL] CWE-190 GHSA-9qcx-32pg-7pqp: Integer overflow in the keycompare_mb function in sort
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-4042 CVE-2015-4041 coreutils: various flaws [fedora-all]
bugzilla·2015-05-21·CVSS 7.8
CVE-2015-4042 [HIGH] CVE-2015-4042 CVE-2015-4041 coreutils: various flaws [fedora-all]
CVE-2015-4042 CVE-2015-4041 coreutils: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora. Whil
Bugzilla
CVE-2015-4042 coreutils: possible buffer overflow in keycompare_mb()
bugzilla·2015-05-21·CVSS 9.8
CVE-2015-4042 [CRITICAL] CVE-2015-4042 coreutils: possible buffer overflow in keycompare_mb()
CVE-2015-4042 coreutils: possible buffer overflow in keycompare_mb()
It was reported that there might be a buffer overflow triggered in sort(1) with data around SIZE_MAX/2.
This appears to be related to the new "SIZE_MAX - lenb - 2 < lena" test, which is not specifically associated with use of multibyte characters.
Initial report: https://bugzilla.suse.com/show_bug.cgi?id=928749
Fix: https://github.com/pixelb/coreutils/commit/bea5e36cc876ed627bb5e0eca36fdfaa6465e940
CVE assignment: http://seclists.org/oss-sec/2015/q2/502
Discussion:
Created coreutils tracking bugs for this issue:
Affects: fedora-all [bug 1223821]
---
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.
2020-01-24
Published