Back to CVE catalog
CVE-2015-4041

Heap-based buffer overflow in sort in GNU Coreutils

Multiple products

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.1

7.8High
Published:
Updated:
EPSS:
0.518%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Local

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:gnucoreutilsAffected versions:
≤ 8.23
Vendor:redhatcoreutils
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for coreutils
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatcoreutils-libs
Environments (1)
  • cpe:/o:redhat:enterprise_linux:6
Affected versions:
Range not specifiedShow full version range for coreutils-libs
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatcoreutils
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for coreutils
  • Other versions are affected by default; consult the source for exceptions.
Vendor:SUSEcoreutils
Environments (14)
  • cpe:/o:suse:oes-release:23.4
  • cpe:/o:suse:oes-release:24.4
  • cpe:/o:suse:sle-module-basesystem:15:sp4
  • cpe:/o:suse:sle-module-basesystem:15:sp5
  • cpe:/o:suse:sle_hpc:15:sp4
  • cpe:/o:suse:sle_hpc:15:sp5
  • cpe:/o:suse:sled:15:sp4
  • cpe:/o:suse:sled:15:sp5
  • cpe:/o:suse:sles:15:sp4
  • cpe:/o:suse:sles:15:sp5
  • cpe:/o:suse:sles_sap:15:sp4
  • cpe:/o:suse:sles_sap:15:sp5
  • cpe:/o:suse:suse-manager-proxy:4.3
  • cpe:/o:suse:suse-manager-retail-branch-server:4.3
Affected versions:
< 0:8.32-150400.7.5
Vendor:SUSEcoreutils-doc
Environments (14)
  • cpe:/o:suse:oes-release:23.4
  • cpe:/o:suse:oes-release:24.4
  • cpe:/o:suse:sle-module-basesystem:15:sp4
  • cpe:/o:suse:sle-module-basesystem:15:sp5
  • cpe:/o:suse:sle_hpc:15:sp4
  • cpe:/o:suse:sle_hpc:15:sp5
  • cpe:/o:suse:sled:15:sp4
  • cpe:/o:suse:sled:15:sp5
  • cpe:/o:suse:sles:15:sp4
  • cpe:/o:suse:sles:15:sp5
  • cpe:/o:suse:sles_sap:15:sp4
  • cpe:/o:suse:sles_sap:15:sp5
  • cpe:/o:suse:suse-manager-proxy:4.3
  • cpe:/o:suse:suse-manager-retail-branch-server:4.3
Affected versions:
< 0:8.32-150400.7.5
Vendor:SUSEcoreutils-lang
Environments (14)
  • cpe:/o:suse:oes-release:23.4
  • cpe:/o:suse:oes-release:24.4
  • cpe:/o:suse:sle-module-basesystem:15:sp4
  • cpe:/o:suse:sle-module-basesystem:15:sp5
  • cpe:/o:suse:sle_hpc:15:sp4
  • cpe:/o:suse:sle_hpc:15:sp5
  • cpe:/o:suse:sled:15:sp4
  • cpe:/o:suse:sled:15:sp5
  • cpe:/o:suse:sles:15:sp4
  • cpe:/o:suse:sles:15:sp5
  • cpe:/o:suse:sles_sap:15:sp4
  • cpe:/o:suse:sles_sap:15:sp5
  • cpe:/o:suse:suse-manager-proxy:4.3
  • cpe:/o:suse:suse-manager-retail-branch-server:4.3
Affected versions:
< 0:8.32-150400.7.5
Vendor:SUSEcoreutils
Environments (5)
  • cpe:/o:suse:oes-release:25.4
  • cpe:/o:suse:sle-module-basesystem:15:sp7
  • cpe:/o:suse:sled:15:sp7
  • cpe:/o:suse:sles:15:sp7
  • cpe:/o:suse:sles_sap:15:sp7
Affected versions:
< 0:8.32-150400.9.6.1
Vendor:SUSEcoreutils-doc
Environments (5)
  • cpe:/o:suse:oes-release:25.4
  • cpe:/o:suse:sle-module-basesystem:15:sp7
  • cpe:/o:suse:sled:15:sp7
  • cpe:/o:suse:sles:15:sp7
  • cpe:/o:suse:sles_sap:15:sp7
Affected versions:
< 0:8.32-150400.9.6.1
Vendor:SUSEcoreutils-lang
Environments (5)
  • cpe:/o:suse:oes-release:25.4
  • cpe:/o:suse:sle-module-basesystem:15:sp7
  • cpe:/o:suse:sled:15:sp7
  • cpe:/o:suse:sles:15:sp7
  • cpe:/o:suse:sles_sap:15:sp7
Affected versions:
< 0:8.32-150400.9.6.1

1–10 of 75 · Page 1 of 8

CVSS scores and metrics7
[email protected] · NVD (Primary)Primary7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd · Wazuh CTI (cna)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE · SUSE VEX (adp)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)4.6 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Local
Authentication
Not required

Source vector

AV:L/AC:L/Au:N/C:P/I:P/A:P
nvd · Wazuh CTI (cna)4.6 / 10MediumCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Local
Authentication
Not required

Source vector

AV:L/AC:L/Au:N/C:P/I:P/A:P
redhat · Wazuh CTI (adp)3.7 / 10LowCVSS 2.0Details
Attack complexity
High
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Local
Authentication
Not required

Source vector

AV:L/AC:H/Au:N/C:P/I:P/A:P
Red Hat · Red Hat VEX (adp)3.7 / 10LowCVSS 2.0Details
Attack complexity
High
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Local
Authentication
Not required

Source vector

AV:L/AC:H/Au:N/C:P/I:P/A:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories15

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences