CVE-2009-0040 Use after free in n/a
Attackers can cause crashes or execute code via crafted PNG files exploiting uninitialized pointer frees in libpng.
- 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-2009-0040?
CVE-2009-0040 is a medium-severity use after free vulnerability in Apple Iphone Os, published on 22 Feb 2009. 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
The PNG reference library (aka libpng) before 1.0.43, and 1.2.x before 1.2.35, as used in pngcrush and other applications, allows context-dependent attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PNG file that triggers a free of an uninitialized pointer in (1) the png_read_png function, (2) pCAL chunk handling, or (3) setup of 16-bit gamma tables.
Weakness: CWE-824
Which versions are affected by CVE-2009-0040?
It affects 9 products.
Linux distribution packages (24)
libpng Red Hat:enterprise_linux:3::as | All versions | 2:1.2.2-29 |
libpng-debuginfo Red Hat:enterprise_linux:3::as | All versions | 2:1.2.2-29 |
libpng-devel Red Hat:enterprise_linux:3::as | All versions | 2:1.2.2-29 |
libpng10 Red Hat:enterprise_linux:3::as | All versions | 0:1.0.13-20 |
libpng10-debuginfo Red Hat:enterprise_linux:3::as | All versions | 0:1.0.13-20 |
libpng10-devel Red Hat:enterprise_linux:3::as | All versions | 0:1.0.13-20 |
libpng Red Hat:enterprise_linux:3::desktop | All versions | 2:1.2.2-29 |
libpng-debuginfo Red Hat:enterprise_linux:3::desktop | All versions | 2:1.2.2-29 |
libpng-devel Red Hat:enterprise_linux:3::desktop | All versions | 2:1.2.2-29 |
libpng10 Red Hat:enterprise_linux:3::desktop | All versions | 0:1.0.13-20 |
libpng10-debuginfo Red Hat:enterprise_linux:3::desktop | All versions | 0:1.0.13-20 |
libpng10-devel Red Hat:enterprise_linux:3::desktop | All versions | 0:1.0.13-20 |
libpng Red Hat:enterprise_linux:3::es | All versions | 2:1.2.2-29 |
libpng-debuginfo Red Hat:enterprise_linux:3::es | All versions | 2:1.2.2-29 |
libpng-devel Red Hat:enterprise_linux:3::es | All versions | 2:1.2.2-29 |
libpng10 Red Hat:enterprise_linux:3::es | All versions | 0:1.0.13-20 |
libpng10-debuginfo Red Hat:enterprise_linux:3::es | All versions | 0:1.0.13-20 |
libpng10-devel Red Hat:enterprise_linux:3::es | All versions | 0:1.0.13-20 |
libpng Red Hat:enterprise_linux:3::ws | All versions | 2:1.2.2-29 |
libpng-debuginfo Red Hat:enterprise_linux:3::ws | All versions | 2:1.2.2-29 |
libpng-devel Red Hat:enterprise_linux:3::ws | All versions | 2:1.2.2-29 |
libpng10 Red Hat:enterprise_linux:3::ws | All versions | 0:1.0.13-20 |
libpng10-debuginfo Red Hat:enterprise_linux:3::ws | All versions | 0:1.0.13-20 |
libpng10-devel Red Hat:enterprise_linux:3::ws | All versions | 0:1.0.13-20 |
Products include Apple Iphone Os, Apple Mac Os X, Debian Debian Linux, Fedoraproject Fedora, Libpng Libpng, Opensuse Opensuse and 3 more.
How do I fix CVE-2009-0040?
Upgrade to a fixed version.
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-2009-0040 being exploited?
There is no known exploitation of CVE-2009-0040 in the wild and no public exploit code.
Other vulnerabilities in Apple Iphone Os
Sources
Also known as GHSA-m968-rq7m-646j, RHSA-2009:0340.