CVE-2018-5816

NameCVE-2018-5816
DescriptionAn integer overflow error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.12 can be exploited to trigger a division by zero via specially crafted NOKIARAW file (Note: This vulnerability is caused due to an incomplete fix of CVE-2018-5804).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesELA-697-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libraw (PTS)jessie, jessie (lts)0.16.0-9+deb8u6fixed
stretch (security)0.17.2-6+deb9u2vulnerable
stretch (lts), stretch0.17.2-6+deb9u5fixed
buster (security), buster, buster (lts)0.19.2-2+deb10u4fixed
bullseye (security), bullseye0.20.2-1+deb11u1fixed
bookworm0.20.2-2.1fixed
sid, trixie0.21.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
librawsourcejessie(not affected)
librawsourcestretch0.17.2-6+deb9u3ELA-697-1
librawsource(unstable)0.18.13-1low

Notes

[stretch] - libraw <not-affected> (Fix for CVE-2018-5804 not released in stretch)
[jessie] - libraw <not-affected> (Fix for CVE-2018-5804 not in jessie LTS)
http://seclists.org/bugtraq/2018/Jul/58
Issue caused by an incomplete fix for CVE-2018-5804
https://github.com/LibRaw/LibRaw/commit/1d8d1b452e5dc74033ee9f846081a0efb616cc39

Search for package or bug name: Reporting problems