Out-of-bounds read in libexif - CVE-2012-2813

 

Out-of-bounds read in libexif - CVE-2012-2813

Published: July 26, 2020


Vulnerability identifier: #VU31852
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-2813
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition in the exif_convert_utf16_to_utf8 function in exif-entry.c in the EXIF Tag Parsing Library. A remote attacker can create a specially crafted image file, trick the victim into opening it, trigger out-of-bounds read error and read contents of memory on the system.


Affected software

libexif
Amazon Linux AMI
Gentoo Linux
Ubuntu
SUSE Linux
Slackware Linux
libexif (Alpine package)
libexif12 (Ubuntu package)

How to mitigate CVE-2012-2813

Install update from vendor's website.

libexif - update to 0.6.21
libexif (Alpine package) - update to 0.6.21-r0
libexif12 (Ubuntu package) - addressed in versions 0.6.16-2.1ubuntu0.2, 0.6.19-1ubuntu0.1, 0.6.20-0ubuntu1.1, 0.6.20-1ubuntu0.1, 0.6.20-2ubuntu0.1

External References

Related Security Bulletins