CVE-2020-15503

NameCVE-2020-15503
DescriptionLibRaw before 0.20-RC1 lacks a thumbnail size range check. This affects decoders/unpack_thumb.cpp, postprocessing/mem_image.cpp, and utils/thumb_utils.cpp. For example, malloc(sizeof(libraw_processed_image_t)+T.tlength) occurs without validating T.tlength.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3214-1, ELA-747-1, ELA-748-1
Debian Bugs964747

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
trixie, sid0.21.3-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
librawsourceexperimental0.20.0-1
librawsourcejessie0.16.0-9+deb8u6ELA-748-1
librawsourcestretch0.17.2-6+deb9u4ELA-747-1
librawsourcebuster0.19.2-2+deb10u2DLA-3214-1
librawsource(unstable)0.20.0-4964747

Notes

https://bugzilla.redhat.com/show_bug.cgi?id=1853477
https://github.com/LibRaw/LibRaw/commit/20ad21c0d87ca80217aee47533d91e633ce1864d

Search for package or bug name: Reporting problems