Cloudanix VulnDB

CVE-2014-5044

Critical · 9.8

CVSS

9.8

EPSS

5.6%

Published

Mar 7, 2018

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in a common Fortran support library can let attackers crash programs or take them over by sending specially crafted data that breaks memory handling.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflows during array allocation in libgfortran allow memory corruption that can lead to arbitrary code execution or application crashes.

Why it matters to the business

Fortran-based scientific, engineering, or data-processing applications may crash or be fully compromised, causing service outages, incorrect results, or unauthorized access to sensitive computations.

How an attack unfolds

An attacker supplies a specially crafted Fortran array descriptor or input that triggers an integer overflow in the allocation routines, resulting in undersized or misaligned memory regions that are subsequently written to or executed from.

How to fix it

Upgrade to a patched version of libgfortran that contains bounds checks and corrected integer handling in array allocation routines; rebuild and redeploy all dependent Fortran applications.

How to confirm the fix worked

Rebuild affected applications with the updated library and execute regression tests that exercise large or boundary array allocations; monitor for crashes or memory errors during fuzzing of allocation paths.

Typical attack path

  1. Identify a Fortran application that uses libgfortran and processes attacker-controlled data or files.
  2. Craft input containing array dimensions or metadata that cause integer overflow during allocation.
  3. Trigger the allocation path to corrupt heap metadata or adjacent buffers.
  4. Leverage the corruption to hijack control flow or cause denial of service.

How to detect it

Review application logs for unexpected Fortran runtime crashes or allocation failures; inspect core dumps or memory sanitizer output for signs of heap corruption near array allocation sites.

What your security team should do

  • Inventory all binaries and containers that link against libgfortran and prioritize upgrades.
  • Add static analysis or compiler flags that detect integer overflow in Fortran code.
  • Restrict untrusted input to Fortran applications until patches are applied.

The record

Multiple integer overflows in libgfortran might allow remote attackers to execute arbitrary code or cause a denial of service (Fortran application crash) via vectors related to array allocation.

Affected packages

Ecosystem Package Introduced Fixed
Mageia:3 gcc 0 4.7.2-8.2.mga3
Mageia:4 gcc 0 4.8.2-3.2.mga4
Ubuntu:14.04:LTS gcc-4.7 0 No fix
Ubuntu:14.04:LTS gcc-4.8 0 4.8.4-2ubuntu1~14.04
Ubuntu:14.04:LTS gcc-4.8-arm64-cross 0 0.11.1
Ubuntu:14.04:LTS gcc-4.8-armhf-cross 0 0.11.1
Ubuntu:14.04:LTS gcc-mingw-w64 0 No fix
Ubuntu:16.04:LTS gcc-4.7 0 No fix
Ubuntu:16.04:LTS gcc-4.7-armel-cross 0 No fix
Ubuntu:16.04:LTS gcc-4.7-armhf-cross 0 No fix
Ubuntu:16.04:LTS gcc-4.8-arm64-cross 0 2
Ubuntu:16.04:LTS gcc-4.8-armhf-cross 0 2
Ubuntu:16.04:LTS gcc-4.8-ppc64el-cross 0 2
Ubuntu:16.04:LTS gcc-arm-linux-androideabi 0 No fix
Ubuntu:16.04:LTS gcc-arm-none-eabi 0 No fix
Ubuntu:20.04:LTS gcc-arm-none-eabi 0 15:9-2019-q4-0ubuntu1
Ubuntu:22.04:LTS gcc-arm-none-eabi 0 15:10.3-2021.07-4
Ubuntu:24.04:LTS gcc-arm-none-eabi 0 15:12.2.rel1-1
Ubuntu:Pro:14.04:LTS gcc-4.7 0 No fix
Ubuntu:Pro:14.04:LTS gcc-mingw-w64 0 No fix
Ubuntu:Pro:16.04:LTS gcc-4.7 0 No fix
Ubuntu:Pro:16.04:LTS gcc-4.7-armel-cross 0 No fix
Ubuntu:Pro:16.04:LTS gcc-4.7-armhf-cross 0 No fix
Ubuntu:Pro:16.04:LTS gcc-arm-linux-androideabi 0 No fix
Ubuntu:Pro:16.04:LTS gcc-arm-none-eabi 0 No fix

Related vulnerabilities