Vigil@nce: Gimp, integer overflow via BMP
November 2009 by Vigil@nce
An attacker can invite the victim to open a malicious BMP 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: document
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: 12/11/2009
IMPACTED PRODUCTS
– Mandriva Enterprise Server
– Mandriva Linux
– Unix - plateform
DESCRIPTION OF THE VULNERABILITY
The Gimp program is used to edit images.
The ReadImage() function of the plug-ins/file-bmp/bmp-read.c file
loads images in the BMP 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
BMP image with Gimp, in order to generate an integer overflow,
leading to code execution.
CHARACTERISTICS
Identifiers: BID-37006, CVE-2009-1570, MDVSA-2009:296,
VIGILANCE-VUL-9195
http://vigilance.fr/vulnerability/Gimp-integer-overflow-via-BMP-9195