CVE-2015-4041
The keycompare_mb function in sort.c in sort in GNU Coreutils through 8.23 on 64-bit platforms...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
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.
- Record
CVE-2015-4041- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2015-4041- Updated
- 2026-11-02
EUVDEUVD-2015-4069 No score
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.
- Record
EUVD-2015-4069- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2pj6-g889-m5jr
7.8
The keycompare_mb function in sort.c in sort in GNU Coreutils through 8.23 on 64-bit platforms...
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.
- Record
GHSA-2pj6-g889-m5jr- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVMGASA-2015-0259 No score
Updated coreutils package fixes security vulnerability
Buffer overflows in sort related to the usage of UTF-8 characters (CVE-2015-4041, CVE-2015-4042)
- Record
MGASA-2015-0259- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10390-1 No score
coreutils-8.26-1.1 on GA media
These are all security issues fixed in the coreutils-8.26-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10390-1- Updated
- 2026-11-02
OSVSUSE-SU-2015:1637-1 No score
Security update for coreutils
This update for coreutils provides the following fixes:
- Fix memory handling error with case insensitive sort using UTF-8. (CVE-2015-4041, CVE-2015-4042)
- Ensure 'df -a' shows all remote file system entries.
- Only suppress remote mounts of separate exports with 'df --total'.
- Document that 'df -a' might list duplicated file systems.
- Adjust references to info nodes in man pages.
- Record
SUSE-SU-2015:1637-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
coreutilsMageia:4 From an advisory covering 2 CVEs |
before 8.21-6.2.mga4 | 8.21-6.2.mga4 |
coreutilsSUSE:Linux Enterprise Desktop 12 From an advisory covering 2 CVEs |
before 8.22-9.1 | 8.22-9.1 |
coreutilsSUSE:Linux Enterprise Server 12 From an advisory covering 2 CVEs |
before 8.22-9.1 | 8.22-9.1 |
coreutilsSUSE:Linux Enterprise Server for SAP Applications 12 From an advisory covering 2 CVEs |
before 8.22-9.1 | 8.22-9.1 |
coreutilsopenSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 8.26-1.1 | 8.26-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2015-4041 is a high vulnerability (CVSS 7.8) in Gnu Coreutils, published July 5, 2015. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.52%, the 44th percentile. No source names a fixed version.
References
openwall.com/lists/oss-security/2015/05/15/1
github.com/pixelb/coreutils/commit/bea5e36cc876ed627bb5e0eca36fdfaa6465e940
bugzilla.suse.com/show_bug.cgi?id=928749
nvd.nist.gov/vuln/detail/CVE-2015-4041
github.com/advisories/GHSA-2pj6-g889-m5jr
advisories.mageia.org/MGASA-2015-0259.html
Show 15 moreShow less
bugs.mageia.org/show_bug.cgi?id=16120
lists.opensuse.org/opensuse-updates/2015-06/msg00030.html
suse.com/support/update/announcement/2015/suse-su-20151637-1
bugzilla.suse.com/866010
bugzilla.suse.com/901905
bugzilla.suse.com/907290
bugzilla.suse.com/921559
bugzilla.suse.com/928749
bugzilla.suse.com/930565
bugzilla.suse.com/933396
suse.com/security/cve/CVE-2015-4041
suse.com/security/cve/CVE-2015-4042
suse.com/security/cve/CVE-2013-0221
suse.com/security/cve/CVE-2013-0222
suse.com/security/cve/CVE-2013-0223