Published: 18 June 2022
The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.
per the upstream fix, no known applications attempt to load a 16-bit PPM file into a grayscale uncompressed image buffer, which is the vulnerability described in this CVE. As such, downgrading priority to low as this vulnerability isn't exposed.
As per the description in commit f35fd27ec64, this only affects versions of libjpeg-turbo which have the tjLoadImage function implemented. This function was introduced by commit aa7459050. The code related to this commit is not present in bionic and earlier, meaning that these releases are not vulnerable (this affects libjpeg-turbo > 1.5.3).
Launchpad, Ubuntu, Debian
(end of life)
(code not present)
upstream: https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2 (2.1.0)
Severity score breakdown