CVEfocus › CVE database › CVE-2025-5278

CVE-2025-5278Coreutils: heap buffer under-read in gnu coreutils sort via key specification

CVSS 4.4 MediumEPSS 0.3% (higher than 17% of CVEs)Published 2025-05-27Updated 2026-11-06Assigner: redhat

A flaw was found in GNU Coreutils. The sort utility's begfield() function is vulnerable to a heap buffer under-read. The program may access memory outside the allocated buffer if a user runs a crafted command using the traditional key format. A malicious input could lead to a crash or leak sensitive data.

CWE-121

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

21Fixed
3Fix pending
8Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04coreutilsFixed9.7-3ubuntu2.1UBUNTU-CVE-2025-5278
Ubuntu 25.10coreutilsWill not fix
This issue is a 1-byte out of bounds read in a command line tool only, resulting in a denial of service
UBUNTU-CVE-2025-5278
Ubuntu 24.04coreutilsFixed9.4-3ubuntu6.3UBUNTU-CVE-2025-5278
Ubuntu 22.04coreutilsFixed8.32-4.1ubuntu1.4UBUNTU-CVE-2025-5278
Ubuntu 20.04coreutilsWill not fix
This issue is a 1-byte out of bounds read in a command line tool only, resulting in a denial of service
UBUNTU-CVE-2025-5278
Ubuntu 18.04coreutilsFix pendingUBUNTU-CVE-2025-5278
Ubuntu 16.04coreutilsFix pendingUBUNTU-CVE-2025-5278
Ubuntu 14.04coreutilsFix pendingUBUNTU-CVE-2025-5278
Debian 14coreutilsWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2025-5278
Debian 13coreutilsWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2025-5278
Debian 12coreutilsWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2025-5278
Red Hat Enterprise Linux 10coreutilsFixed0:9.5-8.el10_2RHSA-2026:33124
Red Hat Enterprise Linux 10coreutils-singleFixed0:9.5-8.el10_2RHSA-2026:33124
Red Hat Enterprise Linux 9coreutilsFixed0:8.32-41.el9_8RHSA-2026:28911
Red Hat Enterprise Linux 9coreutils-singleFixed0:8.32-41.el9_8RHSA-2026:28911
Red Hat Enterprise Linux 8coreutilsFixed0:8.30-21.el8_10RHSA-2026:69964
Red Hat Enterprise Linux 8coreutils-singleFixed0:8.30-21.el8_10RHSA-2026:69964
Red Hat Enterprise Linux 7coreutilsWill not fix
Out of support scope
Red Hat Enterprise Linux 6coreutilsWill not fix
Out of support scope
Red Hat Enterprise Linux 6coreutils-libsWill not fix
Out of support scope
AlmaLinux 10coreutilsFixed9.5-8.el10_2ALSA-2026:33124
AlmaLinux 10coreutils-commonFixed9.5-8.el10_2ALSA-2026:33124
AlmaLinux 10coreutils-singleFixed9.5-8.el10_2ALSA-2026:33124
AlmaLinux 9coreutilsFixed8.32-41.el9_8ALSA-2026:28911
AlmaLinux 9coreutils-commonFixed8.32-41.el9_8ALSA-2026:28911
AlmaLinux 9coreutils-singleFixed8.32-41.el9_8ALSA-2026:28911
AlmaLinux 8coreutilsFixed8.30-21.el8_10ALSA-2026:69964
AlmaLinux 8coreutils-commonFixed8.30-21.el8_10ALSA-2026:69964
AlmaLinux 8coreutils-singleFixed8.30-21.el8_10ALSA-2026:69964
Rocky Linux 10coreutilsFixed0:9.5-8.el10_2RLSA-2026:33124
Rocky Linux 9coreutilsFixed0:8.32-41.el9_8RLSA-2026:28911
Rocky Linux 8coreutilsFixed0:8.30-21.el8_10RLSA-2026:69964

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.