CVE-2021-46822
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.
Notes
Author | Note |
---|---|
mdeslaur | 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. |
ccdm94 | 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). |
Priority
Status
Package | Release | Status |
---|---|---|
libjpeg-turbo Launchpad, Ubuntu, Debian |
bionic |
Not vulnerable
(code not present)
|
focal |
Released
(2.0.3-0ubuntu1.20.04.3)
|
|
impish |
Ignored
(end of life)
|
|
jammy |
Not vulnerable
(2.1.2-0ubuntu1)
|
|
kinetic |
Not vulnerable
(2.1.2-0ubuntu1)
|
|
trusty |
Not vulnerable
(code not present)
|
|
upstream |
Released
(2.1.0, 1:2.1.1-1)
|
|
xenial |
Not vulnerable
(code not present)
|
|
Patches: upstream: https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2 |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 5.5 |
Attack vector | Local |
Attack complexity | Low |
Privileges required | None |
User interaction | Required |
Scope | Unchanged |
Confidentiality | None |
Integrity impact | None |
Availability impact | High |
Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |