CVE-2025-5278
Medium · 4.4CVSS
4.4
EPSS
0.3%
Published
May 27, 2025
CISA due date
—
Cloudanix analysis
A bug in a common Linux data-sorting tool can make programs crash or leak information when given specially crafted instructions, so organizations should update the tool to stop the problem.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap buffer under-read in GNU Coreutils sort begfield() function when processing crafted traditional key format options, allowing access to memory outside the allocated buffer and resulting in process crash or sensitive data leakage.
Why it matters to the business
Disruption to data processing workflows that rely on sort, with risk of exposing sensitive information from memory; low likelihood of remote exploitation but requires prompt patching on affected systems to avoid operational incidents.
How an attack unfolds
An attacker supplies a malicious command-line invocation of sort using the traditional key format that triggers the under-read condition in begfield(), causing the utility to access invalid memory and potentially crash or disclose data.
How to fix it
Upgrade affected GNU Coreutils packages to a fixed version; for linux-oracle on Ubuntu 18.04 LTS apply the update to 4.15.0-1105.116 or later equivalent coreutils package.
How to confirm the fix worked
Verify installed coreutils version is at or above the fixed release and test sort with sample traditional key format inputs to confirm absence of crashes or unexpected behavior.
Typical attack path
- Identify systems running vulnerable GNU Coreutils sort
- Craft input using traditional -k key specification that causes buffer under-read
- Execute the sort command locally to trigger the flaw
- Observe crash or inspect leaked memory contents
How to detect it
Review system and application logs for unexpected sort utility crashes or segmentation faults; examine command history for invocations using traditional key formats on unpatched systems.
What your security team should do
- Apply the listed fixed package versions immediately on all affected Ubuntu 18.04 systems
- Scan for custom scripts or automation that invoke sort with legacy key syntax
- Monitor for sort process crashes in system logs as a potential indicator of attempted exploitation
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | coreutils | 0 | No fix |
| Debian:12 | coreutils | 0 | No fix |
| Debian:13 | coreutils | 0 | No fix |
| Mageia:9 | coreutils | 0 | 9.1-1.1.mga9 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Micro 5.3 | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Micro 5.4 | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Micro 5.5 | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Manager Proxy 4.3 | coreutils | 0 | 8.32-150400.9.9.1 |
| SUSE:Manager Server 4.3 | coreutils | 0 | 8.32-150400.9.9.1 |
| openSUSE:Leap 15.6 | coreutils | 0 | 8.32-150400.9.9.1 |
| openSUSE:Leap 15.6 | coreutils-single | 0 | 8.32-150400.9.9.1 |
| openSUSE:Leap 15.6 | coreutils-testsuite | 0 | 8.32-150400.9.9.1 |
| openSUSE:Tumbleweed | coreutils | 0 | 9.7-3.1 |
Related vulnerabilities
- CVE-2003-0853 An integer overflow in ls in the fileutils or coreutils packages may allow local users to… Also affects coreutils
- CVE-2026-78402 Stack-based buffer overflow and out-of-bounds write vulnerability in Thales Sentinel Keys… CWE-121
- CVE-2026-78403 Stack-based buffer overflow and missing authorization vulnerability in Thales Sentinel… CWE-121
- CVE-2026-119086 Missing queue-set type validation in the queue-set selection system call in… CWE-121
- CVE-2026-119528 A flaw was found in GIMP. CWE-121
- CVE-2026-65584 Software installed and run as a non-privileged user may conduct improper GPU system calls… CWE-121
- CVE-2026-118609 Alpine iLX-F511 Android Auto Connection Handler Stack-based Buffer Overflow Remote Code… CWE-121
- CVE-2026-118610 Alpine iLX-F511 Android Auto Service Stack-based Buffer Overflow Remote Code Execution… CWE-121