CVE-2015-4041
published 2020-01-24CVE-2015-4041: 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…
PriorityP434high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.52%
40.8th percentile
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.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | coreutils | — | — |
| gnu | coreutils | <= 8.23 | — |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
vendor_debian7.8LOW
vendor_redhat7.8HIGH
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: heap buffer overflow in sort(1) keycompare_mb()
vendor_redhat·2015-04-27·CVSS 7.8
CVE-2015-4041 [HIGH] CWE-122 coreutils: heap buffer overflow in sort(1) keycompare_mb()
coreutils: heap buffer overflow in sort(1) keycompare_mb()
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.
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-4041: coreutils - The keycompare_mb function in sort.c in sort in GNU Coreutils through 8.23 on 64...
vendor_debian·2015·CVSS 7.8
CVE-2015-4041 [HIGH] CVE-2015-4041: coreutils - The keycompare_mb function in sort.c in sort in GNU Coreutils through 8.23 on 64...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
GHSA
GHSA-2pj6-g889-m5jr: The keycompare_mb function in sort
ghsa_unreviewed·2022-05-24
CVE-2015-4041 [HIGH] CWE-787 GHSA-2pj6-g889-m5jr: The keycompare_mb function in sort
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-4041 coreutils: heap buffer overflow in sort(1) keycompare_mb()
bugzilla·2015-05-21·CVSS 7.8
CVE-2015-4041 [HIGH] CVE-2015-4041 coreutils: heap buffer overflow in sort(1) keycompare_mb()
CVE-2015-4041 coreutils: heap buffer overflow in sort(1) keycompare_mb()
It was reported that a heap overflow can be triggered in sort(1).
This appears to be caused by performing a size calculation without properly considering the number of bytes occupied by 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]
---
I believe heap buffer overflow affects only older versions of sort i18n patch (IOW only one of CVEs is valid for current Fedora patch, another one is valid only for RHEL 6 and older). LC_ALL=C sort code p
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
http://openwall.com/lists/oss-security/2015/05/15/1https://bugzilla.suse.com/show_bug.cgi?id=928749https://github.com/pixelb/coreutils/commit/bea5e36cc876ed627bb5e0eca36fdfaa6465e940http://openwall.com/lists/oss-security/2015/05/15/1https://bugzilla.suse.com/show_bug.cgi?id=928749https://github.com/pixelb/coreutils/commit/bea5e36cc876ed627bb5e0eca36fdfaa6465e940
2020-01-24
Published