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.
Consequences: user access/rights, denial of service of client
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
Mandriva Enterprise Server
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.
Identifiers: BID-37006, CVE-2009-1570, MDVSA-2009:296, VIGILANCE-VUL-9195