FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

xloadimage -- buffer overflows in NIFF image title handling

Affected packages
xloadimage < 4.1.15
xli < 1.17.0_4

Details

VuXML ID 2f0cb4bb-416d-11da-99fe-000854d03344
Discovery 2005-10-05
Entry 2005-10-20
Modified 2005-10-23

Ariel Berkman reports:

Unlike most of the supported image formats in xloadimage, the NIFF image format can store a title name of arbitrary length as part of the image file.

When xloadimage is processing a loaded image, it is creating a new Image object and then writing the processed image to it. At that point, it will also copy the title from the old image to the newly created image.

The 'zoom', 'reduce', and 'rotate' functions are using a fixed length buffer to construct the new title name when an image processing is done. Since the title name in a NIFF format is of varying length, and there are insufficient buffer size validations, the buffer can be overflowed.

References

Bugtraq ID 15051
CVE Name CVE-2005-3178
Message BOEKKJLADFNHIEFBHCECMEONCFAA.aberkm1@uic.edu