Gentoo Logo

libexif: Buffer overflow


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200706-09 / libexif
Release Date June 26, 2007
Latest Revision June 26, 2007: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-libs/libexif < 0.6.16 >= 0.6.16 All supported architectures

Related bugreports: #181922


libexif does not properly handle image EXIF information, possibly allowing for the execution of arbitrary code.

2.  Impact Information


libexif is a library for parsing, editing and saving EXIF metadata from images.


iDefense Labs have discovered that the exif_data_load_data_entry() function in libexif/exif-data.c improperly handles integer data while working with an image with many EXIF components, allowing an integer overflow possibly leading to a heap-based buffer overflow.


An attacker could entice a user of an application making use of a vulnerable version of libexif to load a specially crafted image file, possibly resulting in a crash of the application or the execution of arbitrary code with the rights of the user running the application.

3.  Resolution Information


There is no known workaround at this time.


All libexif users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libexif-0.6.16"

4.  References


Page updated June 26, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.