CVE-2016-3981 Memory corruption in n/a

High 7.8 Published Updated

Remote attackers can execute arbitrary code or cause denial of service via a crafted image file due to a heap-based buffer overflow in OptiPNG.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2016-3981?

CVE-2016-3981 is a high-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 13 Apr 2016. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Heap-based buffer overflow in the bmp_read_rows function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file.

Weakness: CWE-119

Which versions are affected by CVE-2016-3981?

It affects 3 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Optipng Project Optipng.

How do I fix CVE-2016-3981?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2016-3981 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-3981, GHSA-cjrq-gcqj-47wm, UBUNTU-CVE-2016-3981.

Is CVE-2016-3981 in your software?

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

Check your SBOMs for free