CVE-2018-1000222 Use after free in n/a

High 8.8 Published Updated

A double free vulnerability in Libgd allows remote code execution via a specially crafted JPEG image.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-1000222?

CVE-2018-1000222 is a high-severity use after free vulnerability in Canonical Ubuntu Linux, published on 20 Aug 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Libgd version 2.2.5 contains a Double Free Vulnerability vulnerability in gdImageBmpPtr Function that can result in Remote Code Execution . This attack appear to be exploitable via Specially Crafted Jpeg Image can trigger double free. This vulnerability appears to have been fixed in after commit ac16bdf2d41724b5a65255d4c28fb0ec46bc42f5.

Weakness: CWE-415

Which versions are affected by CVE-2018-1000222?

It affects 3 products.

Linux distribution packages (8)
gd SUSE:Linux Enterprise Desktop 12 SP3All versions2.1.0-24.9.1
gd SUSE:Linux Enterprise Module for Basesystem 15All versions2.2.5-4.3.1
gd SUSE:Linux Enterprise Module for Desktop Applications 15All versions2.2.5-4.3.1
php7 SUSE:Linux Enterprise Module for Web and Scripting 15All versions7.2.5-4.9.1
gd SUSE:Linux Enterprise Server 12 SP3All versions2.1.0-24.9.1
gd SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions2.1.0-24.9.1
gd SUSE:Linux Enterprise Software Development Kit 12 SP3All versions2.1.0-24.9.1
gd SUSE:Linux Enterprise Workstation Extension 12 SP3All versions2.1.0-24.9.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Libgd Libgd.

How do I fix CVE-2018-1000222?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2018-1000222 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-1000222, DEBIAN-CVE-2018-1000222, GHSA-jcj9-h5mg-pr5c, SUSE-SU-2018:2837-1, SUSE-SU-2018:2840-1, SUSE-SU-2018:2888-1 and 1 more.

Is CVE-2018-1000222 in your software?

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

Check your SBOMs for free