CVE-2019-5188 Memory corruption in E2fsprogs

High 7.5 Published Updated

A crafted ext4 directory triggers an out-of-bounds write in e2fsck, allowing attackers to execute arbitrary code by corrupting a partition.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2019-5188?

CVE-2019-5188 is a high-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 8 Jan 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A code execution vulnerability exists in the directory rehashing functionality of E2fsprogs e2fsck 1.45.4. A specially crafted ext4 directory can cause an out-of-bounds write on the stack, resulting in code execution. An attacker can corrupt a partition to trigger this vulnerability.

Weakness: CWE-787

Which versions are affected by CVE-2019-5188?

It affects 7 products.

Linux distribution packages (10)
e2fsprogs SUSE:Linux Enterprise Desktop 12 SP4All versions1.43.8-3.11.1
e2fsprogs SUSE:Linux Enterprise Module for Basesystem 15All versions1.43.8-4.17.1
e2fsprogs SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions1.43.8-4.17.1
e2fsprogs SUSE:Linux Enterprise Server 12 SP4All versions1.43.8-3.11.1
e2fsprogs SUSE:Linux Enterprise Server 12 SP5All versions1.43.8-3.11.1
e2fsprogs SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions1.43.8-3.11.1
e2fsprogs SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.43.8-3.11.1
e2fsprogs SUSE:Linux Enterprise Software Development Kit 12 SP4All versions1.43.8-3.11.1
e2fsprogs SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.43.8-3.11.1
e2fsprogs openSUSE:Leap 15.1All versions1.43.8-lp151.5.12.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, E2fsprogs Project E2fsprogs, Fedoraproject Fedora, Netapp Hci Compute Node Firmware, Netapp Solidfire\, Enterprise Sds \& Hci Storage Node and 1 more.

How do I fix CVE-2019-5188?

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-2019-5188 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-5188, CLEANSTART-2024-DX96304, DEBIAN-CVE-2019-5188, DLA-2156-1, DLA-2290-1, GHSA-qv2m-8j7x-p5c8 and 6 more.

Is CVE-2019-5188 in your software?

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

Check your SBOMs for free