libexif: Multiple vulnerabilities — GLSA 200712-15

Two vulnerabilities in libexif possibly allow for the execution of arbitrary code or a Denial of Service.

Affected packages

media-libs/libexif on all architectures
Affected versions < 0.6.16-r1
Unaffected versions >= 0.6.16-r1

Background

libexif is a library for parsing, editing and saving Exif metadata from images. Exif, the Exchangeable image file format, specifies the addition of metadata tags to JPEG, TIFF and RIFF files.

Description

Meder Kydyraliev (Google Security) discovered an integer overflow vulnerability in the exif_data_load_data_thumbnail() function leading to a memory corruption (CVE-2007-6352) and an infinite recursion in the exif_loader_write() function (CVE-2007-6351).

Impact

An attacker could entice the user of an application making use of libexif to load an image file with specially crafted Exif tags, possibly resulting in the execution of arbitrary code with the privileges of the user running the application or a Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All libexif users should upgrade to the latest version:

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

References

Release date
December 29, 2007

Latest revision
December 29, 2007: 01

Severity
normal

Exploitable
remote

Bugzilla entries