LibRaw 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.
https://www.libraw.org/news/libraw-0-20-rc1
https://lists.debian.org/debian-lts-announce/2022/11/msg00042.html
https://github.com/LibRaw/LibRaw/compare/0.20-Beta3...0.20-RC1
https://github.com/LibRaw/LibRaw/commit/20ad21c0d87ca80217aee47533d91e633ce1864d
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00001.html
http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00075.html