Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

CVE-2021-46822

Publication date 18 June 2022

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

5.5 · Medium

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
libjpeg-turbo 22.10 kinetic
Not affected
22.04 LTS jammy
Not affected
21.10 impish Ignored
20.04 LTS focal
Fixed 2.0.3-0ubuntu1.20.04.3
18.04 LTS bionic
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected

Notes


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).

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
libjpeg-turbo

Severity score breakdown

Parameter Value
Base score 5.5 · Medium
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

References

Related Ubuntu Security Notices (USN)

    • USN-5631-1
    • libjpeg-turbo vulnerabilities
    • 22 September 2022

Other references