Vigil@nce: Gimp, integer overflow via PSD
November 2009 by Vigil@nce
An attacker can invite the victim to open a malicious PSD image
with Gimp, in order to generate an integer overflow, leading to
code execution.
Severity: 2/4
Consequences: user access/rights, denial of service of client
Provenance: user shell
Means of attack: no proof of concept, no attack
Ability of attacker: expert (4/4)
Confidence: confirmed by the editor (5/5)
Diffusion of the vulnerable configuration: high (3/3)
Creation date: 19/11/2009
IMPACTED PRODUCTS
– Unix - plateform
DESCRIPTION OF THE VULNERABILITY
The Gimp program is used to edit images.
The read_channel_data() function of the plug-ins/file-psd/psd-load.c
file loads images in the PSD format. In order to do so, it
allocates memory areas which size is the result of the
multiplication between the width and the height of the image.
However, this multiplication can overflow, which forces Gimp to
store data in a memory area which is too short.
An attacker can therefore invite the victim to open a malicious
PSD image with Gimp, in order to generate an integer overflow,
leading to code execution.
CHARACTERISTICS
Identifiers: CVE-2009-3909, VIGILANCE-VUL-9208
http://vigilance.fr/vulnerability/Gimp-integer-overflow-via-PSD-9208