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

Medium 4.4 Published Updated

A heap buffer under-read in GNU Coreutils sort allows attackers to cause crashes or leak sensitive data via crafted key specifications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-5278?

CVE-2025-5278 is a medium-severity memory corruption vulnerability in Cert Manager support for Red Hat OpenShift release 1.17, published on 27 May 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-121

Which versions are affected by CVE-2025-5278?

Linux distribution packages (40)
coreutils AlmaLinux:10All versions9.5-8.el10_2
coreutils-common AlmaLinux:10All versions9.5-8.el10_2
coreutils-single AlmaLinux:10All versions9.5-8.el10_2
coreutils AlmaLinux:8All versions8.30-21.el8_10
coreutils-common AlmaLinux:8All versions8.30-21.el8_10
coreutils-single AlmaLinux:8All versions8.30-21.el8_10
coreutils AlmaLinux:9All versions8.32-41.el9_8
coreutils-common AlmaLinux:9All versions8.32-41.el9_8
coreutils-single AlmaLinux:9All versions8.32-41.el9_8
coreutils Red Hat:enterprise_linux:10.2All versions0:9.5-8.el10_2
coreutils-debuginfo Red Hat:enterprise_linux:10.2All versions0:9.5-8.el10_2
coreutils-debugsource Red Hat:enterprise_linux:10.2All versions0:9.5-8.el10_2
coreutils-single Red Hat:enterprise_linux:10.2All versions0:9.5-8.el10_2
coreutils-single-debuginfo Red Hat:enterprise_linux:10.2All versions0:9.5-8.el10_2
coreutils Red Hat:enterprise_linux:8::baseosAll versions0:8.30-21.el8_10
coreutils-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:8.30-21.el8_10
coreutils-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:8.30-21.el8_10
coreutils-single Red Hat:enterprise_linux:8::baseosAll versions0:8.30-21.el8_10
coreutils-single-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:8.30-21.el8_10
coreutils Red Hat:enterprise_linux:9::baseosAll versions0:8.32-41.el9_8
coreutils-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:8.32-41.el9_8
coreutils-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:8.32-41.el9_8
coreutils-single Red Hat:enterprise_linux:9::baseosAll versions0:8.32-41.el9_8
coreutils-single-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:8.32-41.el9_8
coreutils Rocky Linux:10All versions0:9.5-8.el10_2
coreutils Rocky Linux:8All versions0:8.30-21.el8_10
coreutils Rocky Linux:9All versions0:8.32-41.el9_8
coreutils SUSE:Enterprise Storage 7.1All versions8.32-150300.3.11.1
coreutils SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions8.32-150300.3.11.1
coreutils SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions8.32-150400.9.9.1
coreutils SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions8.32-150400.9.9.1
coreutils SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions8.32-150400.9.9.1
coreutils SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions8.32-150400.9.9.1
coreutils SUSE:Linux Enterprise Micro 5.1All versions8.32-150300.3.11.1
coreutils SUSE:Linux Enterprise Micro 5.2All versions8.32-150300.3.11.1
coreutils SUSE:Linux Enterprise Micro 5.3All versions8.32-150400.9.9.1
coreutils SUSE:Linux Enterprise Micro 5.4All versions8.32-150400.9.9.1
coreutils SUSE:Linux Enterprise Micro 5.5All versions8.32-150400.9.9.1
coreutils SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions8.32-150400.9.9.1
coreutils SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions8.32-150400.9.9.1

How do I fix CVE-2025-5278?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-5278 being exploited?

There is no known exploitation of CVE-2025-5278 in the wild and no public exploit code.

Sources

Also known as ALSA-2026:28911, ALSA-2026:33124, ALSA-2026:69964, AZL-93060, BELL-CVE-2025-5278, CLSA-2026-1783530353 and 20 more.

Is CVE-2025-5278 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free