UBUNTU-CVE-2021-46822

Source
https://ubuntu.com/security/CVE-2021-46822
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46822.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-46822
Upstream
Downstream
Related
Published
2022-06-18T16:15:00Z
Modified
2025-07-18T16:47:06Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - low
Summary
[none]
Details

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 getwordrgb_row function in rdppm.c.

References

Affected packages

Ubuntu:20.04:LTS / libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:deb/ubuntu/libjpeg-turbo@2.0.3-0ubuntu1.20.04.3?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.3-0ubuntu1.20.04.3

Affected versions

2.*

2.0.3-0ubuntu1
2.0.3-0ubuntu1.20.04.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libjpeg-turbo-progs",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libjpeg-turbo-progs-dbgsym",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libjpeg-turbo-test",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libjpeg-turbo-test-dbgsym",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libjpeg-turbo8",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libjpeg-turbo8-dbg",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libjpeg-turbo8-dev",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libturbojpeg",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libturbojpeg-dbgsym",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        },
        {
            "binary_name": "libturbojpeg0-dev",
            "binary_version": "2.0.3-0ubuntu1.20.04.3"
        }
    ],
    "availability": "No subscription required"
}