Cloudanix VulnDB

CVE-2025-5278

Medium · 4.4

CVSS

4.4

EPSS

0.3%

Published

May 27, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Identify systems running vulnerable GNU Coreutils sort
  2. Craft input using traditional -k key specification that causes buffer under-read
  3. Execute the sort command locally to trigger the flaw
  4. 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