The keycompare_mb function in sort.c in sort in GNU Coreutils through 8.23 on 64-bit…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix yet |
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
Not affected: 1 product
- Red Hat Enterprise Linux 5
Timeline
- 2026-10-02 Threatist record created from CVE-2015-4041
- 2026-10-03 Alias added: GHSA-2pj6-g889-m5jr
References
More GNU Coreutils vulnerabilities
- TI-2017-13227 In GNU Coreutils through 8.29, chown-core.c in chown and chgrp does not prevent… CVSS 3.1HIGH 7.1
- TI-2015-01675 fts.c in coreutils 8.4 allows local users to delete arbitrary files. CVSS 3.1MEDIUM 5.1
- TI-2015-03409 Integer overflow in the keycompare_mb function in sort.c in sort in GNU Coreutils through… CVSS 3.1CRITICAL 9.8
- TI-2014-07697 The parse_datetime function in GNU coreutils allows remote attackers to cause a denial of… CVSS 2.0HIGH 7.5
- TI-2024-00631 Coreutils: heap overflow in split --line-bytes with very long lines CVSS 3.1MEDIUM 5.5
- TI-2016-02323 chroot in GNU coreutils, when used with --userspec, allows local users to escape to the… CVSS 3.1MEDIUM 4.6
Sources
- CVE-2015-4041 · CVE Program
- CVE-2015-4041 · NVD
- FIRST EPSS
- GHSA-2pj6-g889-m5jr · GitHub Advisory Database · CC BY 4.0
- CVE-2015-4041 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences