Common Vulnerabilities and Exposures assigned an identifier CVE-2010-2597 to the following vulnerability: The TIFFVStripSize function in tif_strip.c in LibTIFF 3.9.0 and 3.9.2 makes incorrect calls to the TIFFGetField function, which allows remote attackers to cause a denial of service (application crash) via a crafted TIFF image, related to "downsampled OJPEG input" and possibly related to a compiler optimization that triggers a divide-by-zero error. References: [1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-2597 [2] http://bugzilla.maptools.org/show_bug.cgi?id=2215 [3] https://bugs.launchpad.net/bugs/593067 [4] https://bugzilla.redhat.com/show_bug.cgi?id=583081 [5] https://bugzilla.redhat.com/show_bug.cgi?id=603703
This issue did NOT affect the version of the libtiff package, as shipped with Red Hat Enterprise Linux 3. This issue affects the versions of the libtiff package, as shipped with Red Hat Enterprise Linux 4 and 5. -- This issue does NOT affect the current versions of libtiff and mingw32-libtiff packages, as shipped with Fedora releases of 12 and 13 (this flaws has been already addressed in those).
Actually, it's not so much a compiler optimization risk as use of uninitialized variables. If the values happen to be zero to start with, you get a divide-by-zero.
This issue has been addressed in following products: Red Hat Enterprise Linux 4 Red Hat Enterprise Linux 5 Via RHSA-2010:0519 https://rhn.redhat.com/errata/RHSA-2010-0519.html