Out-of-bounds write in LibRaw - CVE-2018-5802

 

Out-of-bounds write in LibRaw - CVE-2018-5802

Published: April 11, 2018


Vulnerability identifier: #VU11768
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-5802
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause DoS condition or execute arbitrary code on the target system.

The weakness exists in the "kodak_radc_load_raw()" function (internal/dcraw_common.cpp) related to the "buf" variable due to incorrect handling of photo files. A remote attacker can submit a specially crafted photo file, trigger out-of-bounds write and cause the service to crash or execute arbitrary code.

Successful exploitation of the vulnerability may result in system compromise.

Affected software

LibRaw
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Debian Linux
Red Hat Enterprise Linux for Power
Ubuntu
libraw9 (Ubuntu package)
libraw (Debian package)
libraw15 (Ubuntu package)
libraw16 (Ubuntu package)

How to mitigate CVE-2018-5802

Update to version 0.18.7.

libraw9 (Ubuntu package) - update to 0.15.4-1ubuntu0.2
libraw (Debian package) - update to 0.16.0-9+deb8u4
libraw15 (Ubuntu package) - update to 0.17.1-1ubuntu0.2
libraw16 (Ubuntu package) - update to 0.18.2-2ubuntu0.2

External References

Related Security Bulletins